quickfix
Class FileLogFactory

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

public class FileLogFactory
extends java.lang.Object
implements LogFactory

Factory for creating file-based loggers. See SessionSettings for configuration.

See Also:
SessionSettings

Field Summary
static java.lang.String SETTING_FILE_LOG_PATH
          File path for writing the session log.
static java.lang.String SETTING_INCLUDE_MILLIS_IN_TIMESTAMP
          Specify whether to include milliseconds in log output time stamps.
static java.lang.String SETTING_INCLUDE_TIMESTAMP_FOR_MESSAGES
          Specify whether to include time stamps for message input and output.
static java.lang.String SETTING_LOG_HEARTBEATS
          Specify whether to include time stamps for message input and output.
 
Constructor Summary
FileLogFactory(SessionSettings settings)
          Create the factory with configuration in session settings.
 
Method Summary
 Log create()
          Create a log using default/global settings.
 Log create(SessionID sessionID)
          Creates a file-based logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETTING_FILE_LOG_PATH

public static final java.lang.String SETTING_FILE_LOG_PATH
File path for writing the session log.

See Also:
Constant Field Values

SETTING_INCLUDE_MILLIS_IN_TIMESTAMP

public static final java.lang.String SETTING_INCLUDE_MILLIS_IN_TIMESTAMP
Specify whether to include milliseconds in log output time stamps. Off, by default.

See Also:
Constant Field Values

SETTING_INCLUDE_TIMESTAMP_FOR_MESSAGES

public static final java.lang.String SETTING_INCLUDE_TIMESTAMP_FOR_MESSAGES
Specify whether to include time stamps for message input and output. Off, by default.

See Also:
Constant Field Values

SETTING_LOG_HEARTBEATS

public static final java.lang.String SETTING_LOG_HEARTBEATS
Specify whether to include time stamps for message input and output. Off, by default.

See Also:
Constant Field Values
Constructor Detail

FileLogFactory

public FileLogFactory(SessionSettings settings)
Create the factory with configuration in session settings.

Parameters:
settings -
Method Detail

create

public Log create(SessionID sessionID)
Creates a file-based logger.

Specified by:
create in interface LogFactory
Parameters:
sessionID - session ID for the 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