public final class LogImplWebguiLogging extends java.lang.Object implements Log
Modifier | Constructor and Description |
---|---|
protected |
LogImplWebguiLogging(java.lang.String name)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the saved entries within this logger.
|
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.
|
static java.lang.String[] |
getAvailableLogs()
Delivers an array with the names of all used loggers.
|
static java.lang.String[] |
getEntries(java.lang.String name)
Delivers an array with all entries of the logger with the given name.
|
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 LogImplWebguiLogging(java.lang.String name)
name
- The name of the logger.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.
public void error(java.lang.String message, java.lang.Throwable t)
Log an error with error log level.
Use this log level for the production mode.
public void clear()
public static java.lang.String[] getAvailableLogs()
public static java.lang.String[] getEntries(java.lang.String name)
name
- The name of the logger.Copyright 2017 Kieker Project, http://kieker-monitoring.net