public final class ConsoleLogger extends java.lang.Object implements Logger
$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().| Constructor and Description |
|---|
ConsoleLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the output, if possible.
|
boolean |
isSupported()
Determine whether this logger is supported in the current configuration and environment.
|
void |
log(LogRecord record)
Log an event.
|
void |
setCurrentLogLevel(int level)
Set the current runtime log level.
|
public void clear()
Loggerpublic boolean isSupported()
LoggerisSupported in interface Loggerpublic void setCurrentLogLevel(int level)
LoggersetCurrentLogLevel in interface Loggerlevel - new runtime log level.