From a982d965f155c7384d8cd8001c56aff3552a5b40 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Mon, 6 Mar 2017 13:08:46 +1000 Subject: [PATCH] logger: New logging config --- CHANGELOG.md | 1 + oragono.yaml | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bf8f820..35821680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ New release of Oragono! ### Config Changes * `registration` and `authentication-enabled` keys moved under `accounts` section. +* `logging` key under `server` removed, replaced with `logging` section. ### Security diff --git a/oragono.yaml b/oragono.yaml index be7dd219..502cd47f 100644 --- a/oragono.yaml +++ b/oragono.yaml @@ -42,9 +42,6 @@ server: # generated using "oragono genpasswd" #password: "" - # log level, one of error, warn, info, debug - log: debug - # motd filename # if you change the motd, you should move it to ircd.motd motd: oragono.motd @@ -173,6 +170,37 @@ opers: # generated using "oragono genpasswd" password: JDJhJDA0JE1vZmwxZC9YTXBhZ3RWT2xBbkNwZnV3R2N6VFUwQUI0RUJRVXRBRHliZVVoa0VYMnlIaGsu +# logging, takes inspiration from Insp +logging: + - + # how to log these messages + # + # file log to given target filename + # stderr log to stderr + method: file stderr + + # filename to log to, if file method is selected + filename: ircd.log + + # type(s) of logs to keep here. you can use - to exclude those types + # + # exclusions take precedent over inclusions, so if you exclude a type it will NEVER + # be logged, even if you explicitly include it + # + # useful types include: + # * everything (usually used with exclusing some types below) + # accounts account registration and authentication + # channels channel creation and operations + # commands command calling and operations + # opers oper actions, authentication, etc + # password password hashing and comparing + # userinput raw lines sent by users + # useroutput raw lines sent to users + type: "* -userinput -useroutput" + + # one of: debug info warn error + level: warn + # datastore configuration datastore: # path to the datastore