|
Kieker 1.10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.common.logging.LogImplJUnit
public final class LogImplJUnit
This is an actual implementation of the logging interface used by the JUnit logger.
Method Summary | |
---|---|
void |
debug(String message)
Log a message with debug log level. |
void |
debug(String message,
Throwable t)
Log an error with debug log level. |
static void |
disableThrowable(Class<? extends Throwable> clazz)
Add a throwable to the list of throwables to be ignored for normal logging. |
void |
error(String message)
Log a message with error log level. |
void |
error(String message,
Throwable t)
Log an error with error log level. |
void |
info(String message)
Log a message with info log level. |
void |
info(String message,
Throwable t)
Log an error with info log level. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
static void |
reset()
Clear list of disabled throwables. |
void |
trace(String message)
Log a message with trace log level. |
void |
trace(String message,
Throwable t)
Log an error with trace log level. |
void |
warn(String message)
Log a message with warn log level. |
void |
warn(String message,
Throwable t)
Log an error with warn log level. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isTraceEnabled()
Log
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations (for example, String
concatenation) when the log level is more than trace.
isTraceEnabled
in interface Log
public void trace(String message)
Log
Log a message with trace log level.
Use this log level for the development mode to log a single step, e.g., "Loaded user 'Helen'" (cf. Log.debug(String)
).
trace
in interface Log
message
- log this messagepublic void trace(String message, Throwable t)
Log
Log an error with trace log level.
Use this log level for the development mode to log a single step, e.g., "Loaded user 'Helen'" (cf. Log.debug(String, Throwable)
).
trace
in interface Log
message
- log this messaget
- log this causepublic final boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations (for example, String
concatenation) when the log level is more than debug.
isDebugEnabled
in interface Log
public final void debug(String message)
Log a message with debug log level.
Use this log level for the development mode to log a set of single steps, e.g., "Loaded 10 users from file" (cf. Log.trace(String)
).
debug
in interface Log
message
- log this messagepublic final void debug(String message, Throwable t)
Log an error with debug log level.
Use this log level for the development mode to log a set of single steps, e.g., "Loaded 10 users from file" (cf. Log.trace(String, Throwable)
).
debug
in interface Log
message
- log this messaget
- log this causepublic final void info(String message)
Log a message with info log level.
Use this log level for the production mode.
info
in interface Log
message
- log this messagepublic final void info(String message, Throwable t)
Log an error with info log level.
Use this log level for the production mode.
info
in interface Log
message
- log this messaget
- log this causepublic final void warn(String message)
Log a message with warn log level.
Use this log level for the production mode.
warn
in interface Log
message
- log this messagepublic final void warn(String message, Throwable t)
Log an error with warn log level.
Use this log level for the production mode.
warn
in interface Log
message
- log this messaget
- log this causepublic final void error(String message)
Log a message with error log level.
Use this log level for the production mode.
error
in interface Log
message
- log this messagepublic final void error(String message, Throwable t)
Log an error with error log level.
Use this log level for the production mode.
error
in interface Log
message
- log this messaget
- log this causepublic static final void disableThrowable(Class<? extends Throwable> clazz)
clazz
- throwable classpublic static final void reset()
|
Kieker 1.10 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |