public class SLF4JLog extends Object
SLF4JLogFactory| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR_EVENT_CATEGORY |
static String |
DEFAULT_EVENT_CATEGORY |
static String |
DEFAULT_INCOMING_MSG_CATEGORY |
static String |
DEFAULT_OUTGOING_MSG_CATEGORY |
| Constructor and Description |
|---|
SLF4JLog(SessionID sessionID,
String eventCategory,
String errorEventCategory,
String incomingMsgCategory,
String outgoingMsgCategory,
boolean prependSessionID,
boolean logHeartbeats,
String inCallerFQCN) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the log and removes any persistent log data.
|
void |
close() |
protected void |
log(org.slf4j.Logger log,
String text)
Made protected to enable unit testing of callerFQCN coming through correctly
|
protected void |
logError(org.slf4j.Logger log,
String text) |
protected void |
logIncoming(String message) |
protected void |
logOutgoing(String message) |
void |
onErrorEvent(String text)
Logs an session error event.
|
void |
onEvent(String text)
Logs a session event.
|
void |
onIncoming(String message)
Logs an incoming message
|
void |
onOutgoing(String message)
Logs an outgoing message
|
protected void |
setLogHeartbeats(boolean logHeartbeats) |
public static final String DEFAULT_EVENT_CATEGORY
public static final String DEFAULT_ERROR_EVENT_CATEGORY
public static final String DEFAULT_INCOMING_MSG_CATEGORY
public static final String DEFAULT_OUTGOING_MSG_CATEGORY
public void onEvent(String text)
Logtext - the event descriptionpublic void onErrorEvent(String text)
Logtext - the event descriptionprotected void logIncoming(String message)
protected void logOutgoing(String message)
protected void log(org.slf4j.Logger log,
String text)
protected void logError(org.slf4j.Logger log,
String text)
public void clear()
Logprotected void setLogHeartbeats(boolean logHeartbeats)
public final void onIncoming(String message)
LogonIncoming in interface Logmessage - the raw FIX message stringpublic final void onOutgoing(String message)
LogonOutgoing in interface Logmessage - the raw FIX message stringpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.