|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--at.gv.egovernment.moa.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 | |
Logger()
|
|
| Method Summary | |
static void |
debug(Object message)
Log a debug message. |
static void |
error(Object message)
Log an error message. |
static void |
error(Object message,
Throwable t)
Log an error message. |
static void |
fatal(Object message)
Log a fatal error message. |
static void |
fatal(Object message,
Throwable t)
Log a fatal error message. |
static void |
info(Object message)
Log an info message. |
static boolean |
isDebugEnabled()
Test, if the debug log level is enabled. |
static boolean |
isDebugEnabled(String hierarchy)
Test, if the debug log level is enabled for a given hierarchy. |
static boolean |
isTraceEnabled()
Test, if the trace log level is enabled. |
static boolean |
isTraceEnabled(String hierarchy)
Test, if the trace log level is enabled for a given hierarchy. |
static void |
setHierarchy(String hierarchy)
Set the default hierarchy to which the Logger should send its
logging output. |
static void |
trace(Object message)
Trace a message. |
static void |
warn(Object message)
Log a warning message. |
static void |
warn(Object message,
Throwable t)
Log a warning message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Logger()
| Method Detail |
public static void setHierarchy(String hierarchy)
Logger should send its
logging output.hierarchy - The logging defaultHierarchy.public static boolean isTraceEnabled()
true, if tracing output is enabled
false otherwise.public static boolean isTraceEnabled(String hierarchy)
hierarchy - requested log hierarchytrue, if tracing output is enabled
false otherwise.public static void trace(Object message)
message - The message to trace.public static boolean isDebugEnabled()
true, if debug output is enabled
false otherwise.public static boolean isDebugEnabled(String hierarchy)
hierarchy - requested log hierarchytrue, if debug output is enabled
false otherwise.public static void debug(Object message)
message - The message to log.public static void info(Object message)
message - The message to log.public static void warn(Object message)
message - The message to log.
public static void warn(Object message,
Throwable t)
message - The message to log.t - An exception that may be the cause of the warning.public static void error(Object message)
message - The message to log.
public static void error(Object message,
Throwable t)
message - The message to log.t - An exception that may be the cause of the error.public static void fatal(Object message)
message - The message to log.
public static void fatal(Object message,
Throwable t)
message - The message to log.t - An exception that may be the cause of the error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||