Modifier | Constructor and Description |
---|---|
protected |
LogImplCommonsLogging(java.lang.String name)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
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?
|
boolean |
isWarnEnabled()
Is warn 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.
|
protected LogImplCommonsLogging(java.lang.String name)
name
- The name of the logger to be used.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(java.lang.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)
).
public void trace(java.lang.String message, java.lang.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)
).
public 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 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. Log.trace(String)
).
public void 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. Log.trace(String, Throwable)
).
public void info(java.lang.String message)
Log a message with info log level.
Use this log level for the production mode.
public void info(java.lang.String message, java.lang.Throwable t)
Log an error with info log level.
Use this log level for the production mode.
public boolean isWarnEnabled()
Log
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations (for example, String
concatenation) when the log level is more than warn.
isWarnEnabled
in interface Log
public void warn(java.lang.String message)
Log a message with warn log level.
Use this log level for the production mode.
public void warn(java.lang.String message, java.lang.Throwable t)
Log an error with warn log level.
Use this log level for the production mode.
public void error(java.lang.String message)
Log a message with error log level.
Use this log level for the production mode.
Copyright 2017 Kieker Project, http://kieker-monitoring.net