[jboss-jira] [JBoss JIRA] (LOGMGR-46) Boot log truncated during startup

James Perkins (JIRA) jira-events at lists.jboss.org
Tue Aug 28 13:57:15 EDT 2012


    [ https://issues.jboss.org/browse/LOGMGR-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714355#comment-12714355 ] 

James Perkins commented on LOGMGR-46:
-------------------------------------

In JBoss Log Manager 1.2.x. With this version you would need to set the {{append}} property before setting the {{file}} property as the forum response suggests.

{code}
handler.BOOTLOG=org.jboss.logmanager.handlers.FileHandler
handler.BOOTLOG.level=DEBUG
handler.BOOTLOG.properties=append,autoFlush,fileName
handler.BOOTLOG.append=true
handler.BOOTLOG.autoFlush=true
handler.BOOTLOG.fileName=${myapp.logdir}/jboss_boot.log
handler.BOOTLOG.formatter=PATTERN
{code}

Note that in the above `handler.BOOTLOG.properties` the first attribute is `append`.

In JBoss Log Manager 1.3.x and higher there is a new `constructorProperties` property you could add.

{code}
handler.BOOTLOG=org.jboss.logmanager.handlers.FileHandler
handler.BOOTLOG.level=DEBUG
handler.BOOTLOG.properties=append,autoFlush,fileName
handler.BOOTLOG.constructorProperties=fileName,append
handler.BOOTLOG.append=true
handler.BOOTLOG.autoFlush=true
handler.BOOTLOG.fileName=${myapp.logdir}/jboss_boot.log
handler.BOOTLOG.formatter=PATTERN
{code}

For rotating there is a {{org.jboss.logmanager.handlers.PeriodicRotatingFileHandler}} and a {{org.jboss.logmanager.handlers.SizeRotatingFileHandler}}. Note though that in releases prior to 1.3.0 the {{PeriodicRotatingFileHandler}} doesn't rotate based on the file date, but up time.
                
> Boot log truncated during startup
> ---------------------------------
>
>                 Key: LOGMGR-46
>                 URL: https://issues.jboss.org/browse/LOGMGR-46
>             Project: JBoss Log Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: core
>    Affects Versions: 1.3.1.Final
>         Environment: RHEL 6
>            Reporter: Sri Ram
>            Assignee: David Lloyd
>              Labels: boot, delete, log, rotation, startup
>
> Boot log is truncated during jboss startup. There is no way to set the 'append' property in logging.properties. Moreover, logging.properties doesn't support log rotation to preserve boot log. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list