org.jboss.errai.cdi.server.gwt
Class JettyLauncher.JettyTreeLogger

java.lang.Object
  extended by org.jboss.errai.cdi.server.gwt.JettyLauncher.JettyTreeLogger
All Implemented Interfaces:
org.mortbay.log.Logger
Enclosing class:
JettyLauncher

public static class JettyLauncher.JettyTreeLogger
extends Object
implements org.mortbay.log.Logger

An adapter for the Jetty logging system to GWT's TreeLogger. This implementation class is only public to allow Log to instantiate it.

The weird static data / default construction setup is a game we play with Log's static initializer to prevent the initial log message from going to stderr.


Constructor Summary
JettyLauncher.JettyTreeLogger(com.google.gwt.core.ext.TreeLogger logger)
           
 
Method Summary
 void debug(String msg, Object arg0, Object arg1)
           
 void debug(String msg, Throwable th)
           
 org.mortbay.log.Logger getLogger(String name)
           
 void info(String msg, Object arg0, Object arg1)
           
 boolean isDebugEnabled()
           
 void setDebugEnabled(boolean enabled)
           
 void warn(String msg, Object arg0, Object arg1)
           
 void warn(String msg, Throwable th)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyLauncher.JettyTreeLogger

public JettyLauncher.JettyTreeLogger(com.google.gwt.core.ext.TreeLogger logger)
Method Detail

debug

public void debug(String msg,
                  Object arg0,
                  Object arg1)
Specified by:
debug in interface org.mortbay.log.Logger

debug

public void debug(String msg,
                  Throwable th)
Specified by:
debug in interface org.mortbay.log.Logger

getLogger

public org.mortbay.log.Logger getLogger(String name)
Specified by:
getLogger in interface org.mortbay.log.Logger

info

public void info(String msg,
                 Object arg0,
                 Object arg1)
Specified by:
info in interface org.mortbay.log.Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.mortbay.log.Logger

setDebugEnabled

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

warn

public void warn(String msg,
                 Object arg0,
                 Object arg1)
Specified by:
warn in interface org.mortbay.log.Logger

warn

public void warn(String msg,
                 Throwable th)
Specified by:
warn in interface org.mortbay.log.Logger


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.