public class DefaultDebugLogger extends Object implements DebugLogger
This implementation allows for filtering of log messages of particular depth. So for example, only message above or equal to level ALERT are shown.
Constructor and Description |
---|
DefaultDebugLogger() |
Modifier and Type | Method and Description |
---|---|
boolean |
isInterestedIn(int level)
Queries the current debug level.
|
void |
listenToEventDispatcher()
Sets up the system so that the debug messenger will intercept event
dispatch errors and output the event to the debug stream.
|
void |
setDebugLevel(int level)
Sets the debug level that's to be output to the stream.
|
void |
setOutput(Writer out)
Sets up the OutputStream to which the debug information is to be output
to.
|
void |
write(int level,
Class cla,
String message) |
void |
write(int level,
Object ob,
String message)
This writes the given debugging string.
|
void |
write(int level,
String class_string,
String message) |
void |
writeException(int level,
Throwable e)
This writes the given Exception but gives it a 'debug_level'.
|
void |
writeException(Throwable e)
This writes the given Exception.
|
public final void setOutput(Writer out)
public final void setDebugLevel(int level)
public final void listenToEventDispatcher()
public final boolean isInterestedIn(int level)
DebugLogger
isInterestedIn
in interface DebugLogger
public final void write(int level, Object ob, String message)
DebugLogger
write
in interface DebugLogger
public final void write(int level, Class cla, String message)
write
in interface DebugLogger
public final void write(int level, String class_string, String message)
write
in interface DebugLogger
public final void writeException(Throwable e)
DebugLogger
writeException
in interface DebugLogger
public final void writeException(int level, Throwable e)
DebugLogger
writeException
in interface DebugLogger
Copyright © 2015. All rights reserved.