diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2014-07-02 10:41:12 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2014-07-02 23:46:54 +0200 |
commit | 9265720f923abfb97336a6ad1cd41287772aa728 (patch) | |
tree | 601dc6bf98992c920f10a3dd61b4dde96bf400a3 /ejabberd.yml.example | |
parent | New option support: log_rotate_count (diff) |
add ability to rotate logs on given date condition
Diffstat (limited to '')
-rw-r--r-- | ejabberd.yml.example | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/ejabberd.yml.example b/ejabberd.yml.example index 1f55fe990..8f16d1a4e 100644 --- a/ejabberd.yml.example +++ b/ejabberd.yml.example @@ -24,8 +24,8 @@ ### > Art thou not Romeo, ### and a Montague? -### ========= -### DEBUGGING +### ======= +### LOGGING ## ## loglevel: Verbosity of log files generated by ejabberd. @@ -39,6 +39,32 @@ loglevel: 4 ## +## rotation: Describe how to rotate logs. Either size and/or date can trigger +## log rotation. Setting count to N keeps N rotated logs. Setting count to 0 +## does not disable rotation, it instead rotates the file and keeps no previous +## versions around. Setting size to X rotate log when it reaches X bytes. +## To disable rotation set the size to 0 and the date to "" +## Size syntax is taken from the syntax newsyslog uses in newsyslog.conf. +## Some examples: +## $D0 rotate every night at midnight +## $D23 rotate every day at 23:00 hr +## $W0D23 rotate every week on Sunday at 23:00 hr +## $W5D16 rotate every week on Friday at 16:00 hr +## $M1D0 rotate on the first day of every month at midnight +## $M5D6 rotate on every 5th day of the month at 6:00 hr +## +log_rotate_size: 10485760 +log_rotate_date: "" +log_rotate_count: 1 + +## +## overload protection: If you want to limit the number of messages per second +## allowed from error_logger, which is a good idea if you want to weather a flood +## of messages when system is overloaded, you can set a limit. +## 100 is ejabberd's default. +log_rate_limit: 100 + +## ## watchdog_admins: Only useful for developers: if an ejabberd process ## consumes a lot of memory, send live notifications to these XMPP ## accounts. |