quickfix
Class CompositeLogFactory

java.lang.Object
  extended by quickfix.CompositeLogFactory
All Implemented Interfaces:
LogFactory

public class CompositeLogFactory
extends java.lang.Object
implements LogFactory

Allows multiple log factories to be used with QuickFIX/J. For example, you could log events to the console and also log all events and messages to a file.


Constructor Summary
CompositeLogFactory(LogFactory[] logFactories)
          Defines a composite log factory based on a set of existing LogFactory implementations.
 
Method Summary
 Log create()
          Create a log using default/global settings.
 Log create(SessionID sessionID)
          Create the composite Log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLogFactory

public CompositeLogFactory(LogFactory[] logFactories)
Defines a composite log factory based on a set of existing LogFactory implementations.

Parameters:
logFactories - the factories to be used in the composite
See Also:
LogFactory
Method Detail

create

public Log create(SessionID sessionID)
Create the composite Log. This is typically used by the SessionFactory.

Specified by:
create in interface LogFactory
Parameters:
sessionID - the session associated with the log
Returns:
the composite log
See Also:
SessionFactory

create

public Log create()
Description copied from interface: LogFactory
Create a log using default/global settings.

Specified by:
create in interface LogFactory
Returns:
the log implementation