public abstract class MsdlLogger extends Object
| Constructor and Description |
|---|
MsdlLogger() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
debug(CharSequence message)
Send a message to the user at debug error level.
|
abstract void |
debug(CharSequence message,
Throwable error)
Send a message and exception to the user at the debug error level.
|
abstract void |
error(CharSequence message)
Send a message to the user at the error error level.
|
abstract void |
error(CharSequence message,
Throwable error)
Send a message and exception to the user at the error error level.
|
static MsdlLogger |
errorCountingLogger(MsdlLogger logger,
AtomicInteger errorCounter)
Returns a logger that will delegate all invocations to the specified logger.
|
abstract void |
info(CharSequence message)
Send a message to the user at the info error level.
|
abstract void |
info(CharSequence message,
Throwable error)
Send a message and exception to the user at the info error level.
|
abstract void |
warn(CharSequence message)
Send a message to the user at the warn error level.
|
abstract void |
warn(CharSequence message,
Throwable error)
Send a message and exception to the user at the warn error level.
|
static MsdlLogger |
wrapJUL(Logger logger)
Wraps a java util logger in a MSDL logger.
|
public abstract void debug(CharSequence message)
message - the message to sendpublic abstract void debug(CharSequence message, Throwable error)
message - the message to senderror - the exceptionpublic abstract void error(CharSequence message)
message - the message to sendpublic abstract void error(CharSequence message, Throwable error)
message - the message to senderror - the exceptionpublic abstract void info(CharSequence message)
message - the message to sendpublic abstract void info(CharSequence message, Throwable error)
message - the message to senderror - the exceptionpublic abstract void warn(CharSequence message)
message - the message to sendpublic abstract void warn(CharSequence message, Throwable error)
message - the message to senderror - the exceptionpublic static MsdlLogger errorCountingLogger(MsdlLogger logger, AtomicInteger errorCounter)
AtomicInteger.incrementAndGet()logger - the logger to wraperrorCounter - the counter to increment each time a message is logged at the error level.public static MsdlLogger wrapJUL(Logger logger)
logger - the logger to wrapCopyright © 2012–2014 Danish Maritime Authority. All rights reserved.