public class Logger
extends java.lang.Object
Class that encapsulates the logging methods.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
Logger(java.lang.Class<?> clazz)
Constructor for instancing the configured Logger class using a class object.
|
Logger(java.lang.String name)
Constructor for instancing the configured Logger class using an appender name
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.Object message)
Method that encapsulates the call to the info logger method.
|
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Method that encapsulates the call to the info logger method, including the stack trace.
|
void |
error(java.lang.Object message)
Method that encapsulates the call to the info logger method.
|
void |
error(java.lang.Object message,
java.lang.Throwable t)
Method that encapsulates the call to the info logger method, including the stack trace.
|
static Logger |
getLogger(java.lang.Class<?> clazz)
Method that encapsulates the call to the logger retrieval according to the chosen logger system implementation.
|
static Logger |
getLogger(java.lang.String name)
Method that encapsulates the call to the logger retrieval according to the chosen logger system implementation.
|
void |
info(java.lang.Object message)
Method that encapsulates the call to the info logger method.
|
void |
info(java.lang.Object message,
java.lang.Throwable t)
Method that encapsulates the call to the info logger method, including the stack trace.
|
boolean |
isDebugEnabled()
Checks whether this Logger is enabled for the DEBUG Level.
|
void |
warn(java.lang.Object message)
Method that encapsulates the call to the info logger method.
|
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Method that encapsulates the call to the info logger method, including the stack trace.
|
public Logger(java.lang.String name)
name - String that represents an appender name configured.public Logger(java.lang.Class<?> clazz)
clazz - Class object of the Logger.public static Logger getLogger(java.lang.String name)
name - The name of the configured logger.Loggerpublic static Logger getLogger(java.lang.Class<?> clazz)
clazz - The .class of the class whose logger we want to obtain.Loggerpublic void info(java.lang.Object message)
message - String that represents the message to log with the INFO level.public void info(java.lang.Object message,
java.lang.Throwable t)
message - String that represents the message to log with the INFO level.the - exception to log, including its stack trace.public void debug(java.lang.Object message)
message - String that represents the message to log with the DEBUG level.public void debug(java.lang.Object message,
java.lang.Throwable t)
message - String that represents the message to log with the DEBUG level.the - exception to log, including its stack trace.public void warn(java.lang.Object message)
message - String that represents the message to log with the WARN level.public void warn(java.lang.Object message,
java.lang.Throwable t)
message - String that represents the message to log with the WARN level.the - exception to log, including its stack trace.public void error(java.lang.Object message)
message - String that represents the message to log with the ERROR level.public void error(java.lang.Object message,
java.lang.Throwable t)
message - String that represents the message to log with the ERROR level.the - exception to log, including its stack trace.public boolean isDebugEnabled()