com.google.gwt.libideas.logging.client
Class ConsoleLogHandler

java.lang.Object
  extended by com.google.gwt.libideas.logging.shared.LogHandler
      extended by 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.


Constructor Summary
ConsoleLogHandler()
           
 
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 com.google.gwt.libideas.logging.shared.LogHandler
clear, format, getLevel, hideHandler, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLogHandler

public ConsoleLogHandler()
Method Detail

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 message
level - the message's level
category - optional category
e - optional throwable