com.google.gwt.libideas.logging.client
Class ConsoleLogHandler
java.lang.Object
com.google.gwt.libideas.logging.shared.LogHandler
com.google.gwt.libideas.logging.client.ConsoleLogHandler
public final class ConsoleLogHandler
- extends LogHandler
Logger which sends output via $wnd.console.log()
if
$wnd.console.log
is a function.
Method Summary |
boolean |
isSupported()
Is this handler supported in the given compilation configuration? By
default the answer is "yes". |
void |
publish(java.lang.String message,
Level level,
java.lang.String category,
java.lang.Throwable e)
publish the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLogHandler
public ConsoleLogHandler()
isSupported
public boolean isSupported()
- Description copied from class:
LogHandler
- Is this handler supported in the given compilation configuration? By
default the answer is "yes".
- Overrides:
isSupported
in class LogHandler
- Returns:
- is the handler supported;
publish
public void publish(java.lang.String message,
Level level,
java.lang.String category,
java.lang.Throwable e)
- Description copied from class:
LogHandler
- publish the message.
- Specified by:
publish
in class LogHandler
- Parameters:
message
- the messagelevel
- the message's levelcategory
- optional categorye
- optional throwable