public enum InternalLogger extends java.lang.Enum<InternalLogger>
Modifier and Type | Class and Description |
---|---|
static class |
InternalLogger.LoggerOutputType |
static class |
InternalLogger.LoggingLevel |
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String message,
java.lang.Object... args)
The main method, will delegate the call to the output
only if the logger is enabled for errors, will not allow any exception thrown
|
void |
info(java.lang.String message,
java.lang.Object... args)
The main method, will delegate the call to the output
only if the logger is enabled for info messages, will not allow any exception thrown
|
void |
initialize(java.lang.String loggerOutputType,
java.util.Map<java.lang.String,java.lang.String> loggerData)
The method will first try to find the logger level and then the logger type.
|
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
void |
logAlways(InternalLogger.LoggingLevel requestLevel,
java.lang.String message,
java.lang.Object... args)
The method will log the message in any case.
|
void |
stop()
Closes the Internal Logger for messages.
|
void |
trace(java.lang.String message,
java.lang.Object... args)
The main method, will delegate the call to the output
only if the logger is enabled for at least trace level, will not allow any exception thrown
|
static InternalLogger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InternalLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
warn(java.lang.String message,
java.lang.Object... args)
The main method, will delegate the call to the output
only if the logger is enabled for warnings, will not allow any exception thrown
|
public static final InternalLogger INSTANCE
public static InternalLogger[] values()
for (InternalLogger c : InternalLogger.values()) System.out.println(c);
public static InternalLogger valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void initialize(java.lang.String loggerOutputType, java.util.Map<java.lang.String,java.lang.String> loggerData)
loggerOutputType
- The requested logger typeloggerData
- The data for the internal loggerpublic void stop()
public boolean isTraceEnabled()
public boolean isInfoEnabled()
public boolean isWarnEnabled()
public boolean isErrorEnabled()
public void error(java.lang.String message, java.lang.Object... args)
message
- The message to log with possible placeholders.args
- The arguments that should be formatted into the placeholders.public void warn(java.lang.String message, java.lang.Object... args)
message
- The message to log with possible placeholders.args
- The arguments that should be formatted into the placeholders.public void info(java.lang.String message, java.lang.Object... args)
message
- The message to log with possible placeholders.args
- The arguments that should be formatted into the placeholders.public void trace(java.lang.String message, java.lang.Object... args)
message
- The message to log with possible placeholders.args
- The arguments that should be formatted into the placeholders.public void logAlways(InternalLogger.LoggingLevel requestLevel, java.lang.String message, java.lang.Object... args)
requestLevel
- - The level of the messagemessage
- - The message to printargs
- - The arguments that are part of the message