com.google.gwt.libideas.logging.shared
Class PrintStreamLogHandler

java.lang.Object
  extended by com.google.gwt.libideas.logging.shared.LogHandler
      extended by com.google.gwt.libideas.logging.shared.PrintStreamLogHandler

public class PrintStreamLogHandler
extends LogHandler

Handler to print out to the error console. Only works in hosted mode.


Constructor Summary
PrintStreamLogHandler(java.io.PrintStream stream)
           
 
Method Summary
 boolean isSupported()
          Is this handler supported in the given compilation configuration? By default the answer is "yes".
 void publish(java.lang.String string, 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

PrintStreamLogHandler

public PrintStreamLogHandler(java.io.PrintStream stream)
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 string,
                    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:
string - the message
level - the message's level
category - optional category
e - optional throwable