quickfix
Class SLF4JLogFactory

java.lang.Object
  extended by quickfix.SLF4JLogFactory
All Implemented Interfaces:
LocationAwareLogFactory, LogFactory

public class SLF4JLogFactory
extends java.lang.Object
implements LocationAwareLogFactory

Simple Logging Facade for Java (SLF4J) log factory (slfj.org).


Field Summary
static java.lang.String SETTING_ERROR_EVENT_CATEGORY
          Log category for error events.
static java.lang.String SETTING_EVENT_CATEGORY
          Log category for events.
static java.lang.String SETTING_INMSG_CATEGORY
          Log category for incoming messages.
static java.lang.String SETTING_LOG_HEARTBEATS
          Controls logging of heartbeats (Y or N)
static java.lang.String SETTING_OUTMSG_CATEGORY
          Log category for outgoing messages.
static java.lang.String SETTING_PREPEND_SESSION_ID
          Flag for prepending session ID to log output
 
Constructor Summary
SLF4JLogFactory(SessionSettings settings)
           
 
Method Summary
 Log create()
          Create a log using default/global settings.
 Log create(SessionID sessionID)
          Create a log implementation.
 Log create(SessionID sessionID, java.lang.String callerFQCN)
          This supports use of this log in a CompositeLogFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETTING_EVENT_CATEGORY

public static final java.lang.String SETTING_EVENT_CATEGORY
Log category for events.

See Also:
Constant Field Values

SETTING_ERROR_EVENT_CATEGORY

public static final java.lang.String SETTING_ERROR_EVENT_CATEGORY
Log category for error events.

See Also:
Constant Field Values

SETTING_INMSG_CATEGORY

public static final java.lang.String SETTING_INMSG_CATEGORY
Log category for incoming messages.

See Also:
Constant Field Values

SETTING_OUTMSG_CATEGORY

public static final java.lang.String SETTING_OUTMSG_CATEGORY
Log category for outgoing messages.

See Also:
Constant Field Values

SETTING_PREPEND_SESSION_ID

public static final java.lang.String SETTING_PREPEND_SESSION_ID
Flag for prepending session ID to log output

See Also:
Constant Field Values

SETTING_LOG_HEARTBEATS

public static final java.lang.String SETTING_LOG_HEARTBEATS
Controls logging of heartbeats (Y or N)

See Also:
Constant Field Values
Constructor Detail

SLF4JLogFactory

public SLF4JLogFactory(SessionSettings settings)
Method Detail

create

public Log create(SessionID sessionID)
Description copied from interface: LogFactory
Create a log implementation.

Specified by:
create in interface LogFactory
Parameters:
sessionID - session ID usually used for configuration access
Returns:
the log implementation

create

public Log create(SessionID sessionID,
                  java.lang.String callerFQCN)
This supports use of this log in a CompositeLogFactory.

Specified by:
create in interface LocationAwareLogFactory
Parameters:
sessionID - session ID usually used for configuration access
callerFQCN - fully-qualified class name of the parent logger in case we are being constructed as part of a composite logger
Returns:
the log implementation

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