Package org.apache.openjpa.lib.log
Class Log4J2LogFactory
- java.lang.Object
-
- org.apache.openjpa.lib.log.LogFactoryAdapter
-
- org.apache.openjpa.lib.log.Log4J2LogFactory
-
- All Implemented Interfaces:
LogFactory
public class Log4J2LogFactory extends LogFactoryAdapter
LogFactoryimplementation that delegates to the Log4J-2.x framework. It's configuration key isopenjpa.Log=log4j2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLog4J2LogFactory.LogAdapterAdapts a Log4J2 logger to theLoginterface.
-
Constructor Summary
Constructors Constructor Description Log4J2LogFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LognewLogAdapter(String channel)Return a log adapter for the given channel.-
Methods inherited from class org.apache.openjpa.lib.log.LogFactoryAdapter
getLog
-
-
-
-
Method Detail
-
newLogAdapter
protected Log newLogAdapter(String channel)
Description copied from class:LogFactoryAdapterReturn a log adapter for the given channel. This method may be called multiple times for the same channel in concurrent situations.- Specified by:
newLogAdapterin classLogFactoryAdapter
-
-