com.allen_sauer.gwt.log.client
Class ConsoleLogger
java.lang.Object
com.allen_sauer.gwt.log.client.ConsoleLogger
- All Implemented Interfaces:
- Logger
public final class ConsoleLogger
- extends java.lang.Object
- implements Logger
Logger which sends output via $wnd.console. This logger is compatible with Firebug, Firebug Lite, Chrome Developer Tools, Safari Web
Inspector, IE Developer Toolbar and any others. Messages are logged via
$wnd.console.debug(), $wnd.console.info(),
$wnd.console.warn(), $wnd.console.error() and, as a fallback,
$wnd.console.log().
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLogger
public ConsoleLogger()
clear
public void clear()
- Specified by:
clear in interface Logger
isSupported
public boolean isSupported()
- Specified by:
isSupported in interface Logger
log
public void log(LogRecord record)
- Specified by:
log in interface Logger
setCurrentLogLevel
public void setCurrentLogLevel(int level)
- Specified by:
setCurrentLogLevel in interface Logger