[jboss-jira] [JBoss JIRA] (AS7-2213) Provide an operation to retrieve the last 10 errors from the log

James Perkins (JIRA) jira-events at lists.jboss.org
Wed Nov 14 14:47:21 EST 2012


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

James Perkins commented on AS7-2213:
------------------------------------

The idea of this seems rather simple, but it leaves me with more questions than answers. Creating a new operation that would replay the last x messages that went through the root logger seems easy enough, but how to display it seems up in the air. 

We have a {{org.jboss.logmanager.handlers.QueueHandler}} that just holds a collection of log records. That could easily enough be used to store the last x log records.

Questions:
* Do we only want messages that are passed through the root logger? This would include ignoring messages that are logged through the same class loader as a deployment that uses it's own logging configuration. Also any loggers configured to {{ignore-parent-handlers}} would be ignored too.
* How many do we display? Always 10? To make it configurable we'd have to persist down to the configuration.
* What format do we use? We have a default format that handlers use by default, but that doesn't mean users don't change it on a per-handler basis. Again to make it configurable we'd have to persist down to the configuration.

It almost seems like we want to add the {{QueueHandler}} as a configuration option, but what if the users deletes it? How would the logging configuration work for PC and HC?

Hard-coding the values for the questions above is a solution. Personally I don't really like hard-coded values, but in this case maybe it's what we do or we have system properties to override them.
                
> Provide an operation to retrieve the last 10 errors from the log
> ----------------------------------------------------------------
>
>                 Key: AS7-2213
>                 URL: https://issues.jboss.org/browse/AS7-2213
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management, Logging
>            Reporter: Heiko Braun
>            Assignee: James Perkins
>             Fix For: 7.2.0.Alpha1
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list