[asterisk-bugs] [JIRA] Updated: (ASTERISK-20189) add a none rotatestrategy that disables internal log rotation

Jaco Kroon (JIRA) noreply at issues.asterisk.org
Thu Aug 2 08:47:21 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaco Kroon updated ASTERISK-20189:
----------------------------------

    Attachment: asterisk-logger-norotate.patch

Fixed a minor (but critical) bug from previous version.  Previous version would have leaked the file descriptors of the log files on rotate.

Not sure if this can be improved by skipping the entire logchannels list traversal can be skipped.

> add a none rotatestrategy that disables internal log rotation
> -------------------------------------------------------------
>
>                 Key: ASTERISK-20189
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20189
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 1.8.13.1
>            Reporter: Jaco Kroon
>            Severity: Minor
>         Attachments: asterisk-logger-norotate.patch, asterisk-logger-norotate.patch
>
>
> We are using an external log rotation mechanism and have a need to disable asterisk's internal rotation that kicks in at 1GB.
> The patch I'm about to attach achieves this for us by adding a none strategy on the rotation.
> A further enhancement could be to implement a maxlogsize option, which will enable a user to set the size at which the automatic rotation happens, and when set to 0 disables the size based rotation, but still allow rotation via logger reload.  We're not interested in this and want to disable rotation entirely.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list