[JBoss JIRA] (AS7-6307) Ensure loggers get created on the correct LogContext
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/AS7-6307?page=com.atlassian.jira.plugin.s... ]
James Perkins commented on AS7-6307:
------------------------------------
Work complete, awaiting PR for AS7-6182
> Ensure loggers get created on the correct LogContext
> ----------------------------------------------------
>
> Key: AS7-6307
> URL: https://issues.jboss.org/browse/AS7-6307
> Project: Application Server 7
> Issue Type: Bug
> Components: Logging
> Reporter: James Perkins
> Assignee: James Perkins
> Fix For: 7.2.0.Alpha1
>
>
> Using the {{ContextClassLoaderLogContextSelector}} causes static loggers loaded from libraries that set the TCCL to a deployments class loader get configured with the incorrect log context.
> <dmlloyd> each Class object is examined for its class loader
> <dmlloyd> we keep a set of our logging API class loaders
> <dmlloyd> we iterate until we find a Class which isn't in one of our known modules
> <dmlloyd> then we use that Class's class loader to select the log context
--
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
13 years, 6 months
[JBoss JIRA] (AS7-5255) Deployed log4j.properties does not affect non log4j logging systems
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/AS7-5255?page=com.atlassian.jira.plugin.s... ]
James Perkins commented on AS7-5255:
------------------------------------
Work complete, awaiting PR for AS7-6182.
> Deployed log4j.properties does not affect non log4j logging systems
> -------------------------------------------------------------------
>
> Key: AS7-5255
> URL: https://issues.jboss.org/browse/AS7-5255
> Project: Application Server 7
> Issue Type: Bug
> Components: Logging
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Patrick Ruckstuhl
> Assignee: James Perkins
> Priority: Blocker
> Fix For: 7.2.0.Alpha1
>
>
> If I create the file
> my.ear/META-INF/log4j.properties
> with
> log4j.rootLogger=DEBUG, FA
> log4j.appender.FA=org.apache.log4j.FileAppender
> log4j.appender.FA.File=/tmp/my.log
> log4j.appender.FA.layout=org.apache.log4j.PatternLayout
> log4j.appender.FA.layout.ConversionPattern= %-4r [%t] %-5p %c %x - %m%n
> this results in nothing in the server.log and an empty /tmp/my.log
> but if I create a
> my.ear/META-INF/logging.properties
> this results in everything beeing logged to /tmp/my.log
> We're using SLF4J in our application and also using a library that uses COMMONS-LOGGING
> I also did a test with doing an additional log statement using the log4j api directly and this one (and only this one) did get logged to /tmp/my.log
--
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
13 years, 6 months