|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Log
A simple logging interface abstracting logging APIs.
The five logging levels used by Log
are (in order):
Method Summary | |
---|---|
void |
debug(java.lang.String message)
Log a message with debug log level. |
void |
debug(java.lang.String message,
java.lang.Throwable t)
Log an error with debug log level. |
void |
error(java.lang.String message)
Log a message with error log level. |
void |
error(java.lang.String message,
java.lang.Throwable t)
Log an error with error log level. |
void |
info(java.lang.String message)
Log a message with info log level. |
void |
info(java.lang.String message,
java.lang.Throwable t)
Log an error with info log level. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
void |
trace(java.lang.String message)
Log a message with trace log level. |
void |
trace(java.lang.String message,
java.lang.Throwable t)
Log an error with trace log level. |
void |
warn(java.lang.String message)
Log a message with warn log level. |
void |
warn(java.lang.String message,
java.lang.Throwable t)
Log an error with warn log level. |
Method Detail |
---|
boolean isTraceEnabled()
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.
void trace(java.lang.String message)
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. debug(String)
).
message
- log this messagevoid trace(java.lang.String message, java.lang.Throwable t)
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. debug(String, Throwable)
).
message
- log this messaget
- log this causeboolean 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.
void debug(java.lang.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. trace(String)
).
message
- log this messagevoid debug(java.lang.String message, java.lang.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. trace(String, Throwable)
).
message
- log this messaget
- log this causevoid info(java.lang.String message)
Log a message with info log level.
Use this log level for the production mode.
message
- log this messagevoid info(java.lang.String message, java.lang.Throwable t)
Log an error with info log level.
Use this log level for the production mode.
message
- log this messaget
- log this causevoid warn(java.lang.String message)
Log a message with warn log level.
Use this log level for the production mode.
message
- log this messagevoid warn(java.lang.String message, java.lang.Throwable t)
Log an error with warn log level.
Use this log level for the production mode.
message
- log this messaget
- log this causevoid error(java.lang.String message)
Log a message with error log level.
Use this log level for the production mode.
message
- log this messagevoid error(java.lang.String message, java.lang.Throwable t)
Log an error with error log level.
Use this log level for the production mode.
message
- log this messaget
- log this cause
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |