Package org.apache.openjpa.lib.log
Class MultiLogFactory
java.lang.Object
org.apache.openjpa.lib.log.MultiLogFactory
- All Implemented Interfaces:
LogFactory
A LogFactory implementation to pass events through multiple
LogFactory implementations(such as log4j and LogPanelFactory).
- Author:
- Steve Kim
-
Constructor Summary
ConstructorsConstructorDescriptionMultiLogFactory(LogFactory[] delegates) Create an instance with the given delegates.MultiLogFactory(LogFactory d1, LogFactory d2) Create an instance with the given delegates.MultiLogFactory(LogFactory d1, LogFactory d2, LogFactory d3) Create an instance with the given delegates. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogFactory(LogFactory factory) Returns the delegates that this MultiLogFactory delegates messages to.Returns a Log impl that combines all logs.voidremoveLogFactory(LogFactory factory)
-
Constructor Details
-
MultiLogFactory
Create an instance with the given delegates. -
MultiLogFactory
Create an instance with the given delegates. -
MultiLogFactory
Create an instance with the given delegates.
-
-
Method Details
-
addLogFactory
-
removeLogFactory
-
getDelegates
Returns the delegates that this MultiLogFactory delegates messages to. -
getLog
Returns a Log impl that combines all logs.- Specified by:
getLogin interfaceLogFactory
-