de.smartics.ci.comm
Class LogHelper

Package class diagram package LogHelper
java.lang.Object
  extended by de.smartics.ci.comm.LogHelper

public final class LogHelper
     
     
extends Object

Helper for logging.


Method Summary
static void logDebug(Logger logger, LogLevel logLevel, String message)
          Log on debug level when appropriate.
static void logDebug(Logger logger, LogLevel logLevel, String message, Throwable t)
          Log on debug level when appropriate.
static void logError(Logger logger, LogLevel logLevel, String message)
          Log on errror level when appropriate.
static void logError(Logger logger, LogLevel logLevel, String message, Throwable t)
          Log on error level when appropriate.
static void logInfo(Logger logger, LogLevel logLevel, String message)
          Log on info level when appropriate.
static void logInfo(Logger logger, LogLevel logLevel, String message, Throwable t)
          Log on info level when appropriate.
static void logWarn(Logger logger, LogLevel logLevel, String message)
          Log on warn level when appropriate.
static void logWarn(Logger logger, LogLevel logLevel, String message, Throwable t)
          Log on warn level when appropriate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logInfo

public static void logInfo(Logger logger,
                           LogLevel logLevel,
                           String message)
Log on info level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.

logInfo

public static void logInfo(Logger logger,
                           LogLevel logLevel,
                           String message,
                           Throwable t)
Log on info level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.
t - the throwable that shall be logged with the message.

logDebug

public static void logDebug(Logger logger,
                            LogLevel logLevel,
                            String message)
Log on debug level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.

logDebug

public static void logDebug(Logger logger,
                            LogLevel logLevel,
                            String message,
                            Throwable t)
Log on debug level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.
t - the throwable that shall be logged with the message.

logWarn

public static void logWarn(Logger logger,
                           LogLevel logLevel,
                           String message)
Log on warn level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.

logWarn

public static void logWarn(Logger logger,
                           LogLevel logLevel,
                           String message,
                           Throwable t)
Log on warn level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.
t - the throwable that shall be logged with the message.

logError

public static void logError(Logger logger,
                            LogLevel logLevel,
                            String message)
Log on errror level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.

logError

public static void logError(Logger logger,
                            LogLevel logLevel,
                            String message,
                            Throwable t)
Log on error level when appropriate.

Parameters:
logger - the logger to use for logging.
logLevel - the level that is activated by the configuration.
message - the message to log.
t - the throwable that shall be logged with the message.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.