diff --git a/configs/samples/logger.conf.sample b/configs/samples/logger.conf.sample index 98dd7b6a66..52f88734fa 100644 --- a/configs/samples/logger.conf.sample +++ b/configs/samples/logger.conf.sample @@ -157,15 +157,15 @@ ; 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 ; diff --git a/contrib/scripts/asterisk.logrotate b/contrib/scripts/asterisk.logrotate index 92e6548e73..f774446803 100644 --- a/contrib/scripts/asterisk.logrotate +++ b/contrib/scripts/asterisk.logrotate @@ -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 index 0000000000..2191e51f79 --- /dev/null +++ b/doc/UPGRADE-staging/asterisk_logrotate.txt @@ -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.