From f5a14167f3ef090f8576da3070ed5c452fa01e44 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 28 Aug 2007 20:03:48 +0000 Subject: 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 --- configs/logger.conf.sample | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'configs/logger.conf.sample') 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). -- cgit v1.2.3