org.marketcetera.util.log
Class SLF4JLoggerProxy

java.lang.Object
  extended by org.marketcetera.util.log.SLF4JLoggerProxy

public final class SLF4JLoggerProxy
extends Object

SLF4J proxy with automatic logger selection and variable number of arguments.

Since:
0.5.0
Version:
$Id: SLF4JLoggerProxy.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Field Summary
static String UNKNOWN_LOGGER_NAME
          The name of the category used when no category is explicitly specified.
static String UNKNOWN_MESSAGE
          The logging message used when none is explicitly specified.
 
Method Summary
static void debug(Object category, String message)
          Logs the given message under the given logging category at the debugging level.
static void debug(Object category, String message, Object... params)
          Logs the given parameterized message under the given logging category at the debugging level.
static void debug(Object category, String message, Throwable throwable)
          Logs the given message and throwable under the given logging category at the debugging level.
static void debug(Object category, Throwable throwable)
          Logs the given throwable under the given logging category at the debugging level.
static void debug(Object category, Throwable throwable, String message, Object... params)
          Logs the given parameterized message and throwable under the given logging category at the debugging level.
static void error(Object category, String message)
          Logs the given message under the given logging category at the error level.
static void error(Object category, String message, Object... params)
          Logs the given parameterized message under the given logging category at the error level.
static void error(Object category, String message, Throwable throwable)
          Logs the given message and throwable under the given logging category at the error level.
static void error(Object category, Throwable throwable)
          Logs the given throwable under the given logging category at the error level.
static void error(Object category, Throwable throwable, String message, Object... params)
          Logs the given parameterized message and throwable under the given logging category at the error level.
static void info(Object category, String message)
          Logs the given message under the given logging category at the informational level.
static void info(Object category, String message, Object... params)
          Logs the given parameterized message under the given logging category at the informational level.
static void info(Object category, String message, Throwable throwable)
          Logs the given message and throwable under the given logging category at the informational level.
static void info(Object category, Throwable throwable)
          Logs the given throwable under the given logging category at the informational level.
static void info(Object category, Throwable throwable, String message, Object... params)
          Logs the given parameterized message and throwable under the given logging category at the informational level.
static boolean isDebugEnabled(Object category)
          Returns true if logging of debugging messages is enabled for the given logging category.
static boolean isErrorEnabled(Object category)
          Returns true if logging of error messages is enabled for the given logging category.
static boolean isInfoEnabled(Object category)
          Returns true if logging of informational messages is enabled for the given logging category.
static boolean isTraceEnabled(Object category)
          Returns true if logging of tracing messages is enabled for the given logging category.
static boolean isWarnEnabled(Object category)
          Returns true if logging of warning messages is enabled for the given logging category.
static void trace(Object category, String message)
          Logs the given message under the given logging category at the tracing level.
static void trace(Object category, String message, Object... params)
          Logs the given parameterized message under the given logging category at the tracing level.
static void trace(Object category, String message, Throwable throwable)
          Logs the given message and throwable under the given logging category at the tracing level.
static void trace(Object category, Throwable throwable)
          Logs the given throwable under the given logging category at the tracing level.
static void trace(Object category, Throwable throwable, String message, Object... params)
          Logs the given parameterized message and throwable under the given logging category at the tracing level.
static void warn(Object category, String message)
          Logs the given message under the given logging category at the warning level.
static void warn(Object category, String message, Object... params)
          Logs the given parameterized message under the given logging category at the warning level.
static void warn(Object category, String message, Throwable throwable)
          Logs the given message and throwable under the given logging category at the warning level.
static void warn(Object category, Throwable throwable)
          Logs the given throwable under the given logging category at the warning level.
static void warn(Object category, Throwable throwable, String message, Object... params)
          Logs the given parameterized message and throwable under the given logging category at the warning level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_MESSAGE

public static final String UNKNOWN_MESSAGE
The logging message used when none is explicitly specified.

See Also:
Constant Field Values

UNKNOWN_LOGGER_NAME

public static final String UNKNOWN_LOGGER_NAME
The name of the category used when no category is explicitly specified.

See Also:
Constant Field Values
Method Detail

isErrorEnabled

public static boolean isErrorEnabled(Object category)
Returns true if logging of error messages is enabled for the given logging category.

Parameters:
category - The category.

error

public static void error(Object category,
                         String message)
Logs the given message under the given logging category at the error level.

Parameters:
category - The category.
message - The message.

error

public static void error(Object category,
                         Throwable throwable)
Logs the given throwable under the given logging category at the error level.

Parameters:
category - The category.
throwable - The throwable.

error

public static void error(Object category,
                         String message,
                         Throwable throwable)
Logs the given message and throwable under the given logging category at the error level.

Parameters:
category - The category.
message - The message.
throwable - The throwable.

error

public static void error(Object category,
                         String message,
                         Object... params)
Logs the given parameterized message under the given logging category at the error level.

Parameters:
category - The category.
message - The message.
params - The message parameters.

error

public static void error(Object category,
                         Throwable throwable,
                         String message,
                         Object... params)
Logs the given parameterized message and throwable under the given logging category at the error level.

Parameters:
category - The category.
throwable - The throwable.
message - The message.
params - The message parameters.

isWarnEnabled

public static boolean isWarnEnabled(Object category)
Returns true if logging of warning messages is enabled for the given logging category.

Parameters:
category - The category.

warn

public static void warn(Object category,
                        String message)
Logs the given message under the given logging category at the warning level.

Parameters:
category - The category.
message - The message.

warn

public static void warn(Object category,
                        Throwable throwable)
Logs the given throwable under the given logging category at the warning level.

Parameters:
category - The category.
throwable - The throwable.

warn

public static void warn(Object category,
                        String message,
                        Throwable throwable)
Logs the given message and throwable under the given logging category at the warning level.

Parameters:
category - The category.
message - The message.
throwable - The throwable.

warn

public static void warn(Object category,
                        String message,
                        Object... params)
Logs the given parameterized message under the given logging category at the warning level.

Parameters:
category - The category.
message - The message.
params - The message parameters.

warn

public static void warn(Object category,
                        Throwable throwable,
                        String message,
                        Object... params)
Logs the given parameterized message and throwable under the given logging category at the warning level.

Parameters:
category - The category.
throwable - The throwable.
message - The message.
params - The message parameters.

isInfoEnabled

public static boolean isInfoEnabled(Object category)
Returns true if logging of informational messages is enabled for the given logging category.

Parameters:
category - The category.

info

public static void info(Object category,
                        String message)
Logs the given message under the given logging category at the informational level.

Parameters:
category - The category.
message - The message.

info

public static void info(Object category,
                        Throwable throwable)
Logs the given throwable under the given logging category at the informational level.

Parameters:
category - The category.
throwable - The throwable.

info

public static void info(Object category,
                        String message,
                        Throwable throwable)
Logs the given message and throwable under the given logging category at the informational level.

Parameters:
category - The category.
message - The message.
throwable - The throwable.

info

public static void info(Object category,
                        String message,
                        Object... params)
Logs the given parameterized message under the given logging category at the informational level.

Parameters:
category - The category.
message - The message.
params - The message parameters.

info

public static void info(Object category,
                        Throwable throwable,
                        String message,
                        Object... params)
Logs the given parameterized message and throwable under the given logging category at the informational level.

Parameters:
category - The category.
throwable - The throwable.
message - The message.
params - The message parameters.

isDebugEnabled

public static boolean isDebugEnabled(Object category)
Returns true if logging of debugging messages is enabled for the given logging category.

Parameters:
category - The category.

debug

public static void debug(Object category,
                         String message)
Logs the given message under the given logging category at the debugging level.

Parameters:
category - The category.
message - The message.

debug

public static void debug(Object category,
                         Throwable throwable)
Logs the given throwable under the given logging category at the debugging level.

Parameters:
category - The category.
throwable - The throwable.

debug

public static void debug(Object category,
                         String message,
                         Throwable throwable)
Logs the given message and throwable under the given logging category at the debugging level.

Parameters:
category - The category.
message - The message.
throwable - The throwable.

debug

public static void debug(Object category,
                         String message,
                         Object... params)
Logs the given parameterized message under the given logging category at the debugging level.

Parameters:
category - The category.
message - The message.
params - The message parameters.

debug

public static void debug(Object category,
                         Throwable throwable,
                         String message,
                         Object... params)
Logs the given parameterized message and throwable under the given logging category at the debugging level.

Parameters:
category - The category.
throwable - The throwable.
message - The message.
params - The message parameters.

isTraceEnabled

public static boolean isTraceEnabled(Object category)
Returns true if logging of tracing messages is enabled for the given logging category.

Parameters:
category - The category.

trace

public static void trace(Object category,
                         String message)
Logs the given message under the given logging category at the tracing level.

Parameters:
category - The category.
message - The message.

trace

public static void trace(Object category,
                         Throwable throwable)
Logs the given throwable under the given logging category at the tracing level.

Parameters:
category - The category.
throwable - The throwable.

trace

public static void trace(Object category,
                         String message,
                         Throwable throwable)
Logs the given message and throwable under the given logging category at the tracing level.

Parameters:
category - The category.
message - The message.
throwable - The throwable.

trace

public static void trace(Object category,
                         String message,
                         Object... params)
Logs the given parameterized message under the given logging category at the tracing level.

Parameters:
category - The category.
message - The message.
params - The message parameters.

trace

public static void trace(Object category,
                         Throwable throwable,
                         String message,
                         Object... params)
Logs the given parameterized message and throwable under the given logging category at the tracing level.

Parameters:
category - The category.
throwable - The throwable.
message - The message.
params - The message parameters.


Copyright © 2012. All Rights Reserved.