Package de.dlr.proseo.logging.logger
Class ProseoLogger
java.lang.Object
de.dlr.proseo.logging.logger.ProseoLogger
A centralized logging mechanism for ProsEO.
- Author:
- Katharina Bassler
-
Constructor Summary
ConstructorsConstructorDescriptionProseoLogger(Class<?> clazz) Generates a new logger named as the fully qualified class name. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogging logic provided by Logback.voidLogging logic provided by Logback.voidLogging logic provided by Logback.static Stringformat(ProseoMessage type, Object... msgParameters) Automatic formatting including level, code, and message.getName()Returns the logger's name.booleanIndicates whether the logger is debug enabled.booleanIndicates whether the logger is error enabled.booleanIndicates whether the logger is info enabled.booleanIndicates whether the logger is trace enabled.booleanIndicates whether the logger is warn enabled.log(ProseoMessage type, Object... msgParameters) Logging with automatic formatting including level, code, and message.voidLogging logic provided by Logback.voidLogging logic provided by Logback.voidLogging logic provided by Logback.
-
Constructor Details
-
ProseoLogger
Generates a new logger named as the fully qualified class name.- Parameters:
clazz- The fully qualified class name.
-
-
Method Details
-
log
Logging with automatic formatting including level, code, and message.- Parameters:
type- The enum specifying the type of the message.msgParameters- The message's parameters.- Returns:
- Returns the logged message.
-
format
Automatic formatting including level, code, and message.- Parameters:
type- The enum specifying the type of the message.msgParameters- The message's parameters.- Returns:
- Returns the logged message.
-
debug
Logging logic provided by Logback.- Parameters:
msg- the message to log
-
debug
Logging logic provided by Logback.- Parameters:
format- the format stringarguments- the arguments to insert
-
debug
Logging logic provided by Logback.- Parameters:
msg- the message to logt- the exception (throwable) to log
-
trace
Logging logic provided by Logback.- Parameters:
msg- the message to log
-
trace
Logging logic provided by Logback.- Parameters:
format- the format stringarguments- the arguments to insert
-
trace
Logging logic provided by Logback.- Parameters:
msg- the message to logt- the exception (throwable) to log
-
getName
Returns the logger's name.- Returns:
- The logger's name as a String.
-
isTraceEnabled
public boolean isTraceEnabled()Indicates whether the logger is trace enabled.- Returns:
- The logging level.
-
isDebugEnabled
public boolean isDebugEnabled()Indicates whether the logger is debug enabled.- Returns:
- The logging level.
-
isInfoEnabled
public boolean isInfoEnabled()Indicates whether the logger is info enabled.- Returns:
- The logging level.
-
isWarnEnabled
public boolean isWarnEnabled()Indicates whether the logger is warn enabled.- Returns:
- The logging level.
-
isErrorEnabled
public boolean isErrorEnabled()Indicates whether the logger is error enabled.- Returns:
- The logging level.
-