Class Logger
java.lang.Object
at.gv.egovernment.moaspss.logging.Logger
A utility class acting as a facade to the logging subsystem.
Configure the logging defaultHierarchy that the
Logger uses by
calling setHierarchy once before calling any of the logging
output functions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog a debug message.static voidLog an error message.static voidLog an error message.static voidLog a fatal error message.static voidLog a fatal error message.static voidLog an info message.static booleanTest, if the debug log level is enabled.static booleanisDebugEnabled(String hierarchy) Test, if the debug log level is enabled for a given hierarchy.static booleanTest, if the trace log level is enabled.static booleanisTraceEnabled(String hierarchy) Test, if the trace log level is enabled for a given hierarchy.static voidTrace a message.static voidLog a warning message.static voidLog a warning message.
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
isTraceEnabled
public static boolean isTraceEnabled()Test, if the trace log level is enabled.- Returns:
- boolean
true, if tracing output is enabledfalseotherwise.
-
isTraceEnabled
Test, if the trace log level is enabled for a given hierarchy.- Parameters:
hierarchy- requested log hierarchy- Returns:
- boolean
true, if tracing output is enabledfalseotherwise.
-
trace
Trace a message.- Parameters:
message- The message to trace.
-
isDebugEnabled
public static boolean isDebugEnabled()Test, if the debug log level is enabled.- Returns:
- boolean
true, if debug output is enabledfalseotherwise.
-
isDebugEnabled
Test, if the debug log level is enabled for a given hierarchy.- Parameters:
hierarchy- requested log hierarchy- Returns:
- boolean
true, if debug output is enabledfalseotherwise.
-
debug
Log a debug message.- Parameters:
message- The message to log.
-
info
Log an info message.- Parameters:
message- The message to log.
-
warn
Log a warning message.- Parameters:
message- The message to log.
-
warn
Log a warning message.- Parameters:
message- The message to log.t- An exception that may be the cause of the warning.
-
error
Log an error message.- Parameters:
message- The message to log.
-
error
Log an error message.- Parameters:
message- The message to log.t- An exception that may be the cause of the error.
-
fatal
Log a fatal error message.- Parameters:
message- The message to log.
-
fatal
Log a fatal error message.- Parameters:
message- The message to log.t- An exception that may be the cause of the error.
-