Class LogFactoryAdapter

java.lang.Object
org.apache.openjpa.lib.log.LogFactoryAdapter
All Implemented Interfaces:
LogFactory
Direct Known Subclasses:
CommonsLogFactory, Log4J2LogFactory, Log4JLogFactory, SLF4JLogFactory

public abstract class LogFactoryAdapter extends Object implements LogFactory
Base type that aids in adapting an external log framework to the LogFactory.
Author:
Abe White
  • Constructor Details

    • LogFactoryAdapter

      public LogFactoryAdapter()
  • Method Details

    • getLog

      public Log getLog(String channel)
      Description copied from interface: LogFactory
      Return a log for the given channel name.
      Specified by:
      getLog in interface LogFactory
    • newLogAdapter

      protected abstract Log newLogAdapter(String channel)
      Return a log adapter for the given channel. This method may be called multiple times for the same channel in concurrent situations.