com.google.gwt.libideas.logging.shared
Class PrintStreamLogHandler
java.lang.Object
com.google.gwt.libideas.logging.shared.LogHandler
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintStreamLogHandler
public PrintStreamLogHandler(java.io.PrintStream stream)
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 messagelevel
- the message's levelcategory
- optional categorye
- optional throwable