public class AuditLogger
extends java.lang.Object
Logger
.Constructor and Description |
---|
AuditLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
error(java.lang.String message,
java.lang.Object... arguments)
Log an error to the Audit
Logger . |
static void |
error(java.lang.Throwable thrown,
java.lang.String message,
java.lang.Object... arguments)
Log an exception to the Audit
Logger . |
static java.util.logging.Logger |
getLogger()
Gets the Audit
Logger . |
static void |
informational(java.lang.String message,
java.lang.Object... arguments)
Log an error to the Audit
Logger . |
static void |
log(java.util.logging.Level level,
java.lang.String message,
java.lang.Object... arguments)
Log a message to the Audit
Logger . |
static void |
log(java.util.logging.Level level,
java.lang.Throwable thrown,
java.lang.String message,
java.lang.Object... arguments)
Log a message with exception to the Audit
Logger . |
static void |
warning(java.lang.String message,
java.lang.Object... arguments)
Log a warning to the Audit
Logger . |
public static java.util.logging.Logger getLogger()
Logger
.public static void error(java.lang.String message, java.lang.Object... arguments)
Logger
. If arguments
are specified and the last argument is an exception, that exception will
be assumed to be the cause of the error.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.public static void error(java.lang.Throwable thrown, java.lang.String message, java.lang.Object... arguments)
Logger
.thrown
- The exception to be logged.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.public static void warning(java.lang.String message, java.lang.Object... arguments)
Logger
.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.public static void informational(java.lang.String message, java.lang.Object... arguments)
Logger
.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.public static void log(java.util.logging.Level level, java.lang.String message, java.lang.Object... arguments)
Logger
.level
- The message level.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.public static void log(java.util.logging.Level level, java.lang.Throwable thrown, java.lang.String message, java.lang.Object... arguments)
Logger
.level
- The message level.thrown
- The exception to be logged, or null if none.message
- The message text (see MessageFormat
).arguments
- Arguments to be included in the message, if any.