Package de.dlr.proseo.logging.logger
Klasse ProseoLogger
java.lang.Object
de.dlr.proseo.logging.logger.ProseoLogger
A centralized logging mechanism for ProsEO.
- Autor:
- Katharina Bassler
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungProseoLogger
(Class<?> clazz) Generates a new logger named as the fully qualified class name. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Logging logic provided by Logback.void
Logging logic provided by Logback.void
Logging logic provided by Logback.static String
format
(ProseoMessage type, Object... msgParameters) Automatic formatting including level, code, and message.getName()
Returns the logger's name.boolean
Indicates whether the logger is debug enabled.boolean
Indicates whether the logger is error enabled.boolean
Indicates whether the logger is info enabled.boolean
Indicates whether the logger is trace enabled.boolean
Indicates whether the logger is warn enabled.log
(ProseoMessage type, Object... msgParameters) Logging with automatic formatting including level, code, and message.void
Logging logic provided by Logback.void
Logging logic provided by Logback.void
Logging logic provided by Logback.
-
Konstruktordetails
-
ProseoLogger
Generates a new logger named as the fully qualified class name.- Parameter:
clazz
- The fully qualified class name.
-
-
Methodendetails
-
log
Logging with automatic formatting including level, code, and message.- Parameter:
type
- The enum specifying the type of the message.msgParameters
- The message's parameters.- Gibt zurück:
- Returns the logged message.
-
format
Automatic formatting including level, code, and message.- Parameter:
type
- The enum specifying the type of the message.msgParameters
- The message's parameters.- Gibt zurück:
- Returns the logged message.
-
debug
Logging logic provided by Logback.- Parameter:
msg
- the message to log
-
debug
Logging logic provided by Logback.- Parameter:
format
- the format stringarguments
- the arguments to insert
-
debug
Logging logic provided by Logback.- Parameter:
msg
- the message to logt
- the exception (throwable) to log
-
trace
Logging logic provided by Logback.- Parameter:
msg
- the message to log
-
trace
Logging logic provided by Logback.- Parameter:
format
- the format stringarguments
- the arguments to insert
-
trace
Logging logic provided by Logback.- Parameter:
msg
- the message to logt
- the exception (throwable) to log
-
getName
Returns the logger's name.- Gibt zurück:
- The logger's name as a String.
-
isTraceEnabled
public boolean isTraceEnabled()Indicates whether the logger is trace enabled.- Gibt zurück:
- The logging level.
-
isDebugEnabled
public boolean isDebugEnabled()Indicates whether the logger is debug enabled.- Gibt zurück:
- The logging level.
-
isInfoEnabled
public boolean isInfoEnabled()Indicates whether the logger is info enabled.- Gibt zurück:
- The logging level.
-
isWarnEnabled
public boolean isWarnEnabled()Indicates whether the logger is warn enabled.- Gibt zurück:
- The logging level.
-
isErrorEnabled
public boolean isErrorEnabled()Indicates whether the logger is error enabled.- Gibt zurück:
- The logging level.
-