[jboss-jira] [JBoss JIRA] (LOGMGR-120) Thread local log level overriding
James Perkins (JIRA)
issues at jboss.org
Tue Apr 14 14:23:19 EDT 2015
[ https://issues.jboss.org/browse/LOGMGR-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059005#comment-13059005 ]
James Perkins commented on LOGMGR-120:
--------------------------------------
To use this feature set the {{org.jboss.logmanager.useThreadLocalFilter}} system property to {{true}}. In WildFly this would need to be done in the {{standalone.conf(.bat)}} by adding {{-Dorg.jboss.logmanager.useThreadLocalFilter=true}} to the {{JAVA_OPTS}}.
Then use {{LogManager.setThreadLocalLogLevel(Filter)}} to set the filter for the thread. To remove the filter pass {{null}} to the setter.
> Thread local log level overriding
> ---------------------------------
>
> Key: LOGMGR-120
> URL: https://issues.jboss.org/browse/LOGMGR-120
> Project: JBoss Log Manager
> Issue Type: Feature Request
> Components: core
> Affects Versions: 1.5.2.Final
> Reporter: Matthew Robson
> Assignee: James Perkins
> Attachments: force_logging.patch
>
>
> Having the ability to force logs down to a filter no matter what the log level is set to.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list