Constructor and Description |
---|
MockAieLogger() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all captured events
|
int |
count(String messageContents,
boolean exact) |
int |
count(String messageContents,
boolean exact,
org.apache.log4j.Level maxLevel) |
void |
debug(String msg,
Object... params)
Logs a debug message.
|
void |
debug(Throwable t,
String msg,
Object... params)
Logs a debug message with an exception.
|
void |
error(ErrorCode logMessageType,
String msg,
Object... params)
Logs a error message with an error code.
|
void |
error(ErrorCode logMessageType,
Throwable t,
String msg,
Object... params)
Logs a severe message with an error code.
|
int |
getErrorCount() |
List<String> |
getMessages() |
List<String> |
getMessages(org.apache.log4j.Level level)
Returns messages that have the supplied level.
|
List<String> |
getMessagesWithMaxLevel(org.apache.log4j.Level maxLevel)
Returns messages that have the supplied level or logging less than that level.
|
int |
getWarningCount() |
void |
info(String msg,
Object... params)
Logs an info message.
|
boolean |
isDebugEnabled()
Tells whether the DEBUG level is set
|
boolean |
isInfoEnabled()
Tells whether the INFO level is set
|
boolean |
isTraceEnabled()
Tells whether the TRACE level is set
|
void |
trace(String msg,
Object... params)
Logs a trace message.
|
void |
warn(ErrorCode logMessageType,
String msg,
Object... params)
Logs a warning message with an error code.
|
void |
warn(ErrorCode logMessageType,
Throwable t,
String msg,
Object... params)
Logs a warning message without an error code.
|
public void clear()
public int count(String messageContents, boolean exact)
public int count(String messageContents, boolean exact, org.apache.log4j.Level maxLevel)
public int getWarningCount()
public int getErrorCount()
public List<String> getMessages(org.apache.log4j.Level level)
level
- matching level or null if all messages are desired.public List<String> getMessagesWithMaxLevel(org.apache.log4j.Level maxLevel)
maxLevel
- max level or null if all messages are desired.public void trace(String msg, Object... params)
AieLogger
public void debug(String msg, Object... params)
AieLogger
public void debug(Throwable t, String msg, Object... params)
AieLogger
public void info(String msg, Object... params)
AieLogger
public void warn(ErrorCode logMessageType, Throwable t, String msg, Object... params)
AieLogger
public void warn(ErrorCode logMessageType, String msg, Object... params)
AieLogger
public void error(ErrorCode logMessageType, String msg, Object... params)
AieLogger
public void error(ErrorCode logMessageType, Throwable t, String msg, Object... params)
AieLogger
public boolean isTraceEnabled()
AieLogger
isTraceEnabled
in interface AieLogger
public boolean isInfoEnabled()
AieLogger
isInfoEnabled
in interface AieLogger
public boolean isDebugEnabled()
AieLogger
isDebugEnabled
in interface AieLogger
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.