Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2648

Public Log4j Core implementation of the JUL Logger class.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JUL adapter
    • None

    Description

      In Glassfish I would like to do something like this:

      public class MyApplication extends ResourceConfig {
      
          private static final Logger log = LogManager.getLogger(MyApplication.class);
      
          public MigrationApplication() {
              register(new LoggingFeature(new CoreLogger(log)));
          }
      }
      

      java.util.logging.Logger is already implemented by the org.apache.logging.log4j.jul.CoreLogger,
      but the constructor is package private.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jure.skelin Jure Skelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: