Package com.mckoi.debug
Class Debug
java.lang.Object
com.mckoi.debug.Debug
Deprecated.
use DebugLogger implementations instead.
This is a static class that should be used to output debugging information.
Since all debug messages go through this class, we can easily turn the
messages on and off, or specify output of different levels of debugging
information. We can also filter out the debugging information and output
it to different output streams.
- Author:
- Tobias Downer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.Some sample debug levels.static final int
Deprecated.static final int
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
isInterestedIn
(int level) Deprecated.Queries the current debug level.static final void
Deprecated.Sets up the system so that the debug messenger will intercept event dispatch errors and output the event to the debug stream.static final void
setDebugLevel
(int level) Deprecated.Sets the debug level that's to be output to the stream.static final void
Deprecated.Sets up the OutputStream to which the debug information is to be output to.static final void
Deprecated.static final void
Deprecated.This writes the given debugging string.static final void
Deprecated.static final void
Deprecated.this is a legacy debug method.static final void
writeException
(int level, Throwable e) Deprecated.This writes the given Exception but gives it a 'debug_level'.static final void
Deprecated.This writes the given Exception.
-
Field Details
-
INFORMATION
public static final int INFORMATIONDeprecated.Some sample debug levels.- See Also:
-
WARNING
public static final int WARNINGDeprecated.- See Also:
-
ALERT
public static final int ALERTDeprecated.- See Also:
-
ERROR
public static final int ERRORDeprecated.- See Also:
-
MESSAGE
public static final int MESSAGEDeprecated.- See Also:
-
-
Constructor Details
-
Debug
public Debug()Deprecated.
-
-
Method Details
-
setOutput
Deprecated.Sets up the OutputStream to which the debug information is to be output to. -
setDebugLevel
public static final void setDebugLevel(int level) Deprecated.Sets the debug level that's to be output to the stream. Set to 255 to stop all output to the stream. -
listenToEventDispatcher
public static final void listenToEventDispatcher()Deprecated.Sets up the system so that the debug messenger will intercept event dispatch errors and output the event to the debug stream. -
isInterestedIn
public static final boolean isInterestedIn(int level) Deprecated.Queries the current debug level. Returns true if the debug listener is interested in debug information of this given level. This can be used to speed up certain complex debug displaying operations where the debug listener isn't interested in the information be presented. -
write
Deprecated.This writes the given debugging string. It filters out any messages that are below the 'debug_level' variable. The 'object' variable specifies the object that made the call. 'level' must be between 0 and 255. A message of 'level' 255 will always print. -
write
Deprecated. -
write
Deprecated. -
write
Deprecated.this is a legacy debug method. -
writeException
Deprecated.This writes the given Exception. Exceptions are always output to the log stream. -
writeException
Deprecated.This writes the given Exception but gives it a 'debug_level'. This is so we can write out a warning exception.
-