[jboss-jira] [JBoss JIRA] (LOGMGR-60) LoggerFactory is ignored

David Lloyd (JIRA) issues at jboss.org
Fri Feb 28 17:51:47 EST 2014


     [ https://issues.jboss.org/browse/LOGMGR-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd resolved LOGMGR-60.
-------------------------------

    Resolution: Duplicate Issue

    
> LoggerFactory is ignored
> ------------------------
>
>                 Key: LOGMGR-60
>                 URL: https://issues.jboss.org/browse/LOGMGR-60
>             Project: JBoss Log Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0.0.GA
>            Reporter: Alex Alvarez
>            Assignee: David Lloyd
>
> When providing a factory to BridgeRepository.getLogger(final String name, final LoggerFactory factory)  the factory is ignored, which leads to ClassCastExceptions up the chain.   The most common workaround seems to be to manipulate the classloader or exclude the log manager, but this only adds more complexity, and leads to loss of functionality when overloading the Logger class.
> Use this example factory to test:
>     public static class MyTestLoggerFactory implements LoggerFactory {
>         public Logger makeNewLoggerInstance(String name) {
>             return new MyTestLogger(name);
>         }
>     }

--
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