diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-08-28 20:03:48 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-08-28 20:03:48 +0000 |
commit | f5a14167f3ef090f8576da3070ed5c452fa01e44 (patch) | |
tree | dcc42618c5af6cf8cc3de89244bc2a17e7af161e /configs/logger.conf.sample | |
parent | 2c708fdef4d2b188bc768af8e99e8e4901c63551 (diff) |
Support better rotation of log files to be more like system logging (closes issue #10398)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/logger.conf.sample')
-rw-r--r-- | configs/logger.conf.sample | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/configs/logger.conf.sample b/configs/logger.conf.sample index 23afdd42d..a441ebd8f 100644 --- a/configs/logger.conf.sample +++ b/configs/logger.conf.sample @@ -30,10 +30,22 @@ ; (defaults to queue_log) ;queue_log_name = queue_log ; -; Rename the logfiles using a timestamp instead of a -; sequence number when "logger rotate" is executed -; (defaults to no). -;rotatetimestamp = yes +; Log rotation strategy: +; sequential: Rename archived logs in order, such that the newest +; has the highest sequence number [default]. +; rotate: Rotate all the old files, such that the oldest has the +; highest sequence number [this is the expected behavior +; for Unix administrators]. +; timestamp: Rename the logfiles using a timestamp instead of a +; sequence number when "logger rotate" is executed. +;rotatestrategy = rotate +; +; Run a system command after rotating the files. This is mainly +; useful for rotatestrategy=rotate. The example allows the last +; two archive files to remain uncompressed, but after that point, +; they are compressed on disk. +; +; exec_after_rotate=gzip -9 ${filename}.2 ; ; This determines whether or not we log generic events to a file ; (defaults to yes). |