]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
logging: Add .log to samples and update asterisk.logrotate.
authorBen Ford <bford@digium.com>
Wed, 24 Mar 2021 15:59:12 +0000 (10:59 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 25 Mar 2021 14:24:20 +0000 (09:24 -0500)
Added .log extension to the sample logs in logger.conf.sample so that
they will be able to be opened in the browser when attached to JIRA
tickets. Because of this, asterisk.logrotate has also been updated to
look for .log extensions instead of no extension for log files such as
full and messages.

Change-Id: I5de743c03f08047d6c6cc80cac5019ae0c4c200f

configs/samples/logger.conf.sample
contrib/scripts/asterisk.logrotate
doc/UPGRADE-staging/asterisk_logrotate.txt [new file with mode: 0644]

index 98dd7b6a6602159e564b39119853dc11ccaa1f74..52f88734fa81912a2bfc11ee68b02bff6775a3f2 100644 (file)
 ; modes on a production system unless you are in the process of debugging
 ; a specific issue.
 ;
-;debug => debug
-;trace => trace
-;security => security
+;debug.log => error,warning,notice,verbose,debug
+;trace.log => trace
+;security.log => security
 console => notice,warning,error
 ;console => notice,warning,error,debug
-messages => notice,warning,error
-;full => notice,warning,error,debug,verbose,dtmf,fax
+messages.log => notice,warning,error
+;full.log => notice,warning,error,debug,verbose,dtmf,fax
 ;
-;full-json => [json]debug,verbose,notice,warning,error,dtmf,fax
+;full-json.log => [json]debug,verbose,notice,warning,error,dtmf,fax
 ;
 ;syslog keyword : This special keyword logs to syslog facility
 ;
index 92e6548e733ae42856d48bd5530db09bb0395fa7..f774446803b3dbe2bef7abf0027d2018b1da1fdd 100644 (file)
@@ -1,4 +1,4 @@
-__LOGDIR__/debug __LOGDIR__/console __LOGDIR__/full __LOGDIR__/messages __LOGDIR__/*log {
+__LOGDIR__/debug.log __LOGDIR__/console __LOGDIR__/full.log __LOGDIR__/messages.log __LOGDIR__/*log {
        weekly
        missingok
        rotate 52
diff --git a/doc/UPGRADE-staging/asterisk_logrotate.txt b/doc/UPGRADE-staging/asterisk_logrotate.txt
new file mode 100644 (file)
index 0000000..2191e51
--- /dev/null
@@ -0,0 +1,9 @@
+Subject: Log Rotate
+Master-Only: True
+
+The sample logger files have been changed to have .log as their file
+extension. This was done so that when attached to issues on the issue
+tracker, they are able to be opened in the browser for convenience.
+Because of this, the asterisk.logrotate script has been updated to look
+for .log extensions instead of no extension for files such as full
+and messages.