public enum ToolsetLogger extends Enum<ToolsetLogger>
| Enum Constant and Description |
|---|
INSTANCE
Singleton approach
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String msg)
logs a simple debug message.
|
void |
debug(String format,
Object... args)
logs a formatted debug message.
|
void |
enableDebugLogging(boolean debug) |
void |
init(PrintStream stream)
initializes logger with print stream.
|
void |
init(PrintStream stream,
boolean debugEnabled)
initializes logger with print stream and enables or disables logging of
debug messages.
|
void |
log(String msg)
logs a simple message.
|
void |
log(String format,
Object... args)
logs a formatted message.
|
static ToolsetLogger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToolsetLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToolsetLogger INSTANCE
public static ToolsetLogger[] values()
for (ToolsetLogger c : ToolsetLogger.values()) System.out.println(c);
public static ToolsetLogger valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void init(PrintStream stream)
stream - print stream of Listener.getLogger().public void init(PrintStream stream, boolean debugEnabled)
stream - print stream of Listener.getLogger().debugEnabled - true enables debug logging.public void enableDebugLogging(boolean debug)
public void log(String msg)
msg - message string.public void log(String format, Object... args)
format - the message containing formatting symbols.args - arguments to replace formatting symbols.public void debug(String msg)
msg - debug message string.Copyright © 2004-2015 Berg Systeme. All Rights Reserved.