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 debug(java.lang.String message, java.lang.Object... params)
           
 void error(java.lang.String message, java.lang.Object... params)
           
 void exception(java.lang.Throwable t)
           
 void exception(java.lang.Throwable t, LoggerWrapper.LogLevel logLevel)
           
 java.lang.String getName()
           
 void info(java.lang.String message, java.lang.Object... params)
           
 boolean isDebugEnabled()
           
 boolean isInfoEnabled()
           
 void setInfoLogLevel()
           
 void setLogLevel(LoggerWrapper.LogLevel logLevel)
           
 void trace(java.lang.String message, java.lang.Object... params)
           
 void warn(java.lang.String message, java.lang.Object... params)
           
static LoggerWrapper with(java.lang.Class clazz)
           
static LoggerWrapper with(org.slf4j.Logger logger)
           
static LoggerWrapper with(java.lang.String name)
           
 
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)

with

public static LoggerWrapper with(java.lang.String name)

getName

public java.lang.String getName()

setLogLevel

public void setLogLevel(LoggerWrapper.LogLevel logLevel)

setInfoLogLevel

public void setInfoLogLevel()

isDebugEnabled

public boolean isDebugEnabled()

isInfoEnabled

public boolean isInfoEnabled()

exception

public void exception(java.lang.Throwable t)

exception

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

error

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

warn

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

info

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

debug

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

trace

public void trace(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.