Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-60

LoggerFactory is ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.0.0.GA
    • None
    • None

    Description

      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); }

      }

      Attachments

        Issue Links

          Activity

            People

              dlloyd@redhat.com David Lloyd
              alex.alvarez. Alex Alvarez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: