Package org.apache.openjpa.lib.log
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 java.lang.Object implements LogFactory
Base type that aids in adapting an external log framework to theLogFactory
.- Author:
- Abe White
-
-
Constructor Summary
Constructors Constructor Description LogFactoryAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Log
getLog(java.lang.String channel)
Return a log for the given channel name.protected abstract Log
newLogAdapter(java.lang.String channel)
Return a log adapter for the given channel.
-
-
-
Method Detail
-
getLog
public Log getLog(java.lang.String channel)
Description copied from interface:LogFactory
Return a log for the given channel name.- Specified by:
getLog
in interfaceLogFactory
-
newLogAdapter
protected abstract Log newLogAdapter(java.lang.String channel)
Return a log adapter for the given channel. This method may be called multiple times for the same channel in concurrent situations.
-
-