aboutsummaryrefslogtreecommitdiffstats
path: root/configs/logger.conf.sample
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-28 20:03:48 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-28 20:03:48 +0000
commit8df96a0eca6089b270d59bf3ebb91d10aad6d19d (patch)
treedcc42618c5af6cf8cc3de89244bc2a17e7af161e /configs/logger.conf.sample
parente252bbec44d2e9879de49f42abfa409f746fd114 (diff)
Support better rotation of log files to be more like system logging (closes issue #10398)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81277 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/logger.conf.sample')
-rw-r--r--configs/logger.conf.sample20
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).