com.atlassian.greenhopper.global
Class LoggerWrapper

java.lang.Object
  extended by com.atlassian.greenhopper.global.LoggerWrapper

public class LoggerWrapper
extends java.lang.Object

Convenience methods for Logger.

See Also:
AbstractLoggable

Nested Class Summary
static class LoggerWrapper.LogLevel
           
 
Method Summary
 java.lang.String createMessage(java.lang.String message, java.lang.Object[] params)
           
 void logDebug(java.lang.String message, java.lang.Object... params)
           
 void logError(java.lang.String message, java.lang.Object... params)
           
 void logException(java.lang.Throwable t)
           
 void logException(java.lang.Throwable t, LoggerWrapper.LogLevel logLevel)
           
 void logInfo(java.lang.String message, java.lang.Object... params)
           
 void logTrace(java.lang.String message, java.lang.Object... params)
           
 void logWarn(java.lang.String message, java.lang.Object... params)
           
static LoggerWrapper with(java.lang.Class clazz)
           
static LoggerWrapper with(org.slf4j.Logger logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

with

public static LoggerWrapper with(org.slf4j.Logger logger)

with

public static LoggerWrapper with(java.lang.Class clazz)

logException

public void logException(java.lang.Throwable t)

logException

public void logException(java.lang.Throwable t,
                         LoggerWrapper.LogLevel logLevel)

logError

public void logError(java.lang.String message,
                     java.lang.Object... params)

logWarn

public void logWarn(java.lang.String message,
                    java.lang.Object... params)

logInfo

public void logInfo(java.lang.String message,
                    java.lang.Object... params)

logDebug

public void logDebug(java.lang.String message,
                     java.lang.Object... params)

logTrace

public void logTrace(java.lang.String message,
                     java.lang.Object... params)

createMessage

public java.lang.String createMessage(java.lang.String message,
                                      java.lang.Object[] params)


Copyright © 2007-2013 Atlassian. All Rights Reserved.