Package org.apache.openjpa.lib.log
Class MultiLogFactory
- java.lang.Object
 - 
- org.apache.openjpa.lib.log.MultiLogFactory
 
 
- 
- All Implemented Interfaces:
 LogFactory
public class MultiLogFactory extends Object implements LogFactory
A LogFactory implementation to pass events through multiple LogFactory implementations(such as log4j and LogPanelFactory).- Author:
 - Steve Kim
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MultiLogFactory(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogFactory(LogFactory factory)LogFactory[]getDelegates()Returns the delegates that this MultiLogFactory delegates messages to.LoggetLog(String channel)Returns a Log impl that combines all logs.voidremoveLogFactory(LogFactory factory) 
 - 
 
- 
- 
Constructor Detail
- 
MultiLogFactory
public MultiLogFactory(LogFactory d1, LogFactory d2)
Create an instance with the given delegates. 
- 
MultiLogFactory
public MultiLogFactory(LogFactory d1, LogFactory d2, LogFactory d3)
Create an instance with the given delegates. 
- 
MultiLogFactory
public MultiLogFactory(LogFactory[] delegates)
Create an instance with the given delegates. 
 - 
 
- 
Method Detail
- 
addLogFactory
public void addLogFactory(LogFactory factory)
 
- 
removeLogFactory
public void removeLogFactory(LogFactory factory)
 
- 
getDelegates
public LogFactory[] getDelegates()
Returns the delegates that this MultiLogFactory delegates messages to. 
- 
getLog
public Log getLog(String channel)
Returns a Log impl that combines all logs.- Specified by:
 getLogin interfaceLogFactory
 
 - 
 
 -