goldengate.common.logging
Class GgSlf4JLogger

java.lang.Object
  extended by goldengate.common.logging.GgInternalLogger
      extended by goldengate.common.logging.GgSlf4JLogger
All Implemented Interfaces:
org.jboss.netty.logging.InternalLogger

public class GgSlf4JLogger
extends GgInternalLogger

Example of logger using SLF4J from LOGBACK

Author:
Frederic Bregier

Constructor Summary
GgSlf4JLogger(Logger logger)
           
 
Method Summary
 void debug(String msg)
           
 void debug(String format, Object arg1)
           
 void debug(String format, Object arg1, Object arg2)
           
 void debug(String format, String arg1)
           
 void debug(String format, String arg1, String arg2)
           
 void debug(String msg, Throwable cause)
           
 void error(String msg)
           
 void error(String format, Object arg1)
           
 void error(String format, Object arg1, Object arg2)
           
 void error(String format, String arg1)
           
 void error(String format, String arg1, String arg2)
           
 void error(String msg, Throwable cause)
           
 void info(String msg)
           
 void info(String format, Object arg1)
           
 void info(String format, Object arg1, Object arg2)
           
 void info(String format, String arg1)
           
 void info(String format, String arg1, String arg2)
           
 void info(String msg, Throwable cause)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isWarnEnabled()
           
 String toString()
           
 void warn(String msg)
           
 void warn(String format, Object arg1)
           
 void warn(String format, Object arg1, Object arg2)
           
 void warn(String format, String arg1)
           
 void warn(String format, String arg1, String arg2)
           
 void warn(String msg, Throwable cause)
           
 
Methods inherited from class goldengate.common.logging.GgInternalLogger
getImmediateMethodAndLine, getLoggerMethodAndLine, getRankMethodAndLine, isEnabled, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GgSlf4JLogger

public GgSlf4JLogger(Logger logger)
Parameters:
logger -
Method Detail

debug

public void debug(String format,
                  String arg1,
                  String arg2)
Specified by:
debug in class GgInternalLogger

debug

public void debug(String format,
                  String arg1)
Specified by:
debug in class GgInternalLogger

error

public void error(String format,
                  String arg1,
                  String arg2)
Specified by:
error in class GgInternalLogger

error

public void error(String format,
                  String arg1)
Specified by:
error in class GgInternalLogger

info

public void info(String format,
                 String arg1,
                 String arg2)
Specified by:
info in class GgInternalLogger

info

public void info(String format,
                 String arg1)
Specified by:
info in class GgInternalLogger

warn

public void warn(String format,
                 String arg1,
                 String arg2)
Specified by:
warn in class GgInternalLogger

warn

public void warn(String format,
                 String arg1)
Specified by:
warn in class GgInternalLogger

debug

public void debug(String msg)

debug

public void debug(String msg,
                  Throwable cause)

error

public void error(String msg)

error

public void error(String msg,
                  Throwable cause)

info

public void info(String msg)

info

public void info(String msg,
                 Throwable cause)

isDebugEnabled

public boolean isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()

isInfoEnabled

public boolean isInfoEnabled()

isWarnEnabled

public boolean isWarnEnabled()

warn

public void warn(String msg)

warn

public void warn(String msg,
                 Throwable cause)

toString

public String toString()
Overrides:
toString in class Object

debug

public void debug(String format,
                  Object arg1,
                  Object arg2)
Specified by:
debug in class GgInternalLogger

debug

public void debug(String format,
                  Object arg1)
Specified by:
debug in class GgInternalLogger

error

public void error(String format,
                  Object arg1,
                  Object arg2)
Specified by:
error in class GgInternalLogger

error

public void error(String format,
                  Object arg1)
Specified by:
error in class GgInternalLogger

info

public void info(String format,
                 Object arg1,
                 Object arg2)
Specified by:
info in class GgInternalLogger

info

public void info(String format,
                 Object arg1)
Specified by:
info in class GgInternalLogger

warn

public void warn(String format,
                 Object arg1,
                 Object arg2)
Specified by:
warn in class GgInternalLogger

warn

public void warn(String format,
                 Object arg1)
Specified by:
warn in class GgInternalLogger


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.