org.robotframework.remoteserver.logging
Class Jetty2Log4J

java.lang.Object
  extended by org.robotframework.remoteserver.logging.Jetty2Log4J
All Implemented Interfaces:
org.eclipse.jetty.util.log.Logger

public class Jetty2Log4J
extends Object
implements org.eclipse.jetty.util.log.Logger

Jetty logger that redirects directly to Log4J without needing SLF4J on the classpath. This way users do not need to add more dependencies to get a unified logging solution.


Constructor Summary
Jetty2Log4J()
           
Jetty2Log4J(String name)
           
 
Method Summary
 void debug(String msg, Object... args)
           
 void debug(String msg, Throwable thrown)
           
 void debug(Throwable thrown)
           
 org.eclipse.jetty.util.log.Logger getLogger(String name)
           
 String getName()
           
 void ignore(Throwable ignored)
           
 void info(String msg, Object... args)
           
 void info(String msg, Throwable thrown)
           
 void info(Throwable thrown)
           
 boolean isDebugEnabled()
           
 void setDebugEnabled(boolean enabled)
           
 void warn(String msg, Object... args)
           
 void warn(String msg, Throwable thrown)
           
 void warn(Throwable thrown)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jetty2Log4J

public Jetty2Log4J()

Jetty2Log4J

public Jetty2Log4J(String name)
Method Detail

getName

public String getName()
Specified by:
getName in interface org.eclipse.jetty.util.log.Logger

warn

public void warn(String msg,
                 Object... args)
Specified by:
warn in interface org.eclipse.jetty.util.log.Logger

warn

public void warn(Throwable thrown)
Specified by:
warn in interface org.eclipse.jetty.util.log.Logger

warn

public void warn(String msg,
                 Throwable thrown)
Specified by:
warn in interface org.eclipse.jetty.util.log.Logger

info

public void info(String msg,
                 Object... args)
Specified by:
info in interface org.eclipse.jetty.util.log.Logger

info

public void info(Throwable thrown)
Specified by:
info in interface org.eclipse.jetty.util.log.Logger

info

public void info(String msg,
                 Throwable thrown)
Specified by:
info in interface org.eclipse.jetty.util.log.Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.eclipse.jetty.util.log.Logger

setDebugEnabled

public void setDebugEnabled(boolean enabled)
Specified by:
setDebugEnabled in interface org.eclipse.jetty.util.log.Logger

debug

public void debug(String msg,
                  Object... args)
Specified by:
debug in interface org.eclipse.jetty.util.log.Logger

debug

public void debug(Throwable thrown)
Specified by:
debug in interface org.eclipse.jetty.util.log.Logger

debug

public void debug(String msg,
                  Throwable thrown)
Specified by:
debug in interface org.eclipse.jetty.util.log.Logger

getLogger

public org.eclipse.jetty.util.log.Logger getLogger(String name)
Specified by:
getLogger in interface org.eclipse.jetty.util.log.Logger

ignore

public void ignore(Throwable ignored)
Specified by:
ignore in interface org.eclipse.jetty.util.log.Logger


Copyright © 2012. All Rights Reserved.