com.levigo.util.log.qualified
Interface QualifiedLogger

All Known Implementing Classes:
AbstractQualifiedLogger

public interface QualifiedLogger

QualifiedLoggers are loggers where all messages above and including a severity of "warning" are qualified with unique message IDs. This enables consumers of messages to easily and unambiguously recognize certain types of messages without resorting to the analysis of - possibly internationalized - message texts.


Method Summary
 void debug(String msg)
          Log the given message at level "debug".
 void debug(String msg, Object... args)
          Log the given message at level "debug".
 void debug(String msg, Throwable t)
          Log the given message at level "debug".
 void debug(String msg, Throwable t, Object... args)
          Log the given message at level "debug".
 void error(MessageID msgId)
          Log the given message at level "error".
 void error(MessageID msgId, Object... args)
          Log the given message at level "error".
 void error(MessageID msgId, Throwable t)
          Log the given message at level "error".
 void error(MessageID msgId, Throwable t, Object... args)
          Log the given message at level "error".
 void fatal(MessageID msgId)
          Log the given message at level "fatal".
 void fatal(MessageID msgId, Object... args)
          Log the given message at level "fatal".
 void fatal(MessageID msgId, Throwable t)
          Log the given message at level "fatal".
 void fatal(MessageID msgId, Throwable t, Object... args)
          Log the given message at level "fatal".
 String getName()
          Return the name of this logger - most likely based on the name of the emitting class.
 void info(String msg)
          Log the given message at level "info".
 void info(String msg, Object... args)
          Log the given message at level "info".
 void info(String msg, Throwable t)
          Log the given message at level "info".
 void info(String msg, Throwable t, Object... args)
          Log the given message at level "debug".
 boolean isDebugEnabled()
          Return whether the "debug" (or higher) level is enabled
 boolean isErrorEnabled()
          Return whether the "error" (or higher) level is enabled
 boolean isFatalEnabled()
          Return whether the "fatal" level is enabled
 boolean isInfoEnabled()
          Return whether the "info" (or higher) level is enabled
 boolean isTraceEnabled()
          Return whether the "trace" (or higher) level is enabled
 boolean isWarnEnabled()
          Return whether the "warning" (or higher) level is enabled
 void trace(String msg)
          Log the given message at level "trace".
 void trace(String msg, Object... args)
          Log the given message at level "trace".
 void trace(String msg, Throwable t)
          Log the given message at level "trace".
 void trace(String msg, Throwable t, Object... args)
          Log the given message at level "trace".
 void warn(MessageID msgId)
          Log the given message at level "warning".
 void warn(MessageID msgId, Object... args)
          Log the given message at level "warning".
 void warn(MessageID msgId, Throwable t)
          Log the given message at level "warning".
 void warn(MessageID msgId, Throwable t, Object... args)
          Log the given message at level "warning".
 

Method Detail

getName

String getName()
Return the name of this logger - most likely based on the name of the emitting class.

Returns:
the name

isDebugEnabled

boolean isDebugEnabled()
Return whether the "debug" (or higher) level is enabled

Returns:
true if enabled

debug

void debug(String msg)
Log the given message at level "debug".

Parameters:
msg - the message

debug

void debug(String msg,
           Object... args)
Log the given message at level "debug". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
args - the arguments

debug

void debug(String msg,
           Throwable t)
Log the given message at level "debug".

Parameters:
msg - the message
t - the Throwable related to the event.

debug

void debug(String msg,
           Throwable t,
           Object... args)
Log the given message at level "debug". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
t - the Throwable related to the event.
args - the arguments

isInfoEnabled

boolean isInfoEnabled()
Return whether the "info" (or higher) level is enabled

Returns:
true if enabled

info

void info(String msg)
Log the given message at level "info".

Parameters:
msg - the message

info

void info(String msg,
          Object... args)
Log the given message at level "info". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
args - the arguments

info

void info(String msg,
          Throwable t)
Log the given message at level "info".

Parameters:
msg - the message
t - the Throwable related to the event.

info

void info(String msg,
          Throwable t,
          Object... args)
Log the given message at level "debug". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
t - the Throwable related to the event.
args - the arguments

isTraceEnabled

boolean isTraceEnabled()
Return whether the "trace" (or higher) level is enabled

Returns:
true if enabled

trace

void trace(String msg)
Log the given message at level "trace".

Parameters:
msg - the message

trace

void trace(String msg,
           Object... args)
Log the given message at level "trace". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
args - the arguments

trace

void trace(String msg,
           Throwable t)
Log the given message at level "trace".

Parameters:
msg - the message
t - the Throwable related to the event.

trace

void trace(String msg,
           Throwable t,
           Object... args)
Log the given message at level "trace". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msg - the message
t - the Throwable related to the event.
args - the arguments

isWarnEnabled

boolean isWarnEnabled()
Return whether the "warning" (or higher) level is enabled

Returns:
true if enabled

warn

void warn(MessageID msgId)
Log the given message at level "warning".

Parameters:
msgId - the message

warn

void warn(MessageID msgId,
          Throwable t)
Log the given message at level "warning". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.

warn

void warn(MessageID msgId,
          Object... args)
Log the given message at level "warning".

Parameters:
msgId - the message
args - the arguments

warn

void warn(MessageID msgId,
          Throwable t,
          Object... args)
Log the given message at level "warning". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.
args - the arguments

isErrorEnabled

boolean isErrorEnabled()
Return whether the "error" (or higher) level is enabled

Returns:
true if enabled

error

void error(MessageID msgId)
Log the given message at level "error".

Parameters:
msgId - the message

error

void error(MessageID msgId,
           Throwable t)
Log the given message at level "error". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.

error

void error(MessageID msgId,
           Object... args)
Log the given message at level "error".

Parameters:
msgId - the message
args - the arguments

error

void error(MessageID msgId,
           Throwable t,
           Object... args)
Log the given message at level "error". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.
args - the arguments

isFatalEnabled

boolean isFatalEnabled()
Return whether the "fatal" level is enabled

Returns:
true if enabled

fatal

void fatal(MessageID msgId)
Log the given message at level "fatal".

Parameters:
msgId - the message

fatal

void fatal(MessageID msgId,
           Throwable t)
Log the given message at level "fatal". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.

fatal

void fatal(MessageID msgId,
           Object... args)
Log the given message at level "fatal".

Parameters:
msgId - the message
args - the arguments

fatal

void fatal(MessageID msgId,
           Throwable t,
           Object... args)
Log the given message at level "fatal". Interpolate the given arguments into the message using a MessageFormat.

Parameters:
msgId - the message
t - the Throwable related to the event.
args - the arguments


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.