From 8df96a0eca6089b270d59bf3ebb91d10aad6d19d Mon Sep 17 00:00:00 2001 From: tilghman 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: http://svn.digium.com/svn/asterisk/trunk@81277 f38db490-d61c-443f-a65b-d21fe96a405b --- configs/logger.conf.sample | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'configs') 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