public class PermissioningLogger
extends java.lang.Object
setLogger(LoggerProvider)
to redirect log messages to your LoggerProvider
.
If you want to log to the same log as the PermissioningDatasource
you can use PermissioningLogger.log[level](...)
within
your code.Modifier and Type | Method and Description |
---|---|
static void |
logDebug(java.lang.String message)
Log a debug level message
|
static void |
logDebug(java.lang.String message,
java.lang.Object... args)
Log an info level message with items to be incorporated into the message string
|
static void |
logError(java.lang.String message)
Log an error level message
|
static void |
logError(java.lang.String message,
java.lang.Throwable t)
Log an error level message with items to be incorporated into the message string
|
static void |
logInfo(java.lang.String message)
Log an info level message
|
static void |
logInfo(java.lang.String message,
java.lang.Object... args)
Log an info level message with items to be incorporated into the message string
|
static void |
logWarn(java.lang.String message)
Log an warn level message
|
static void |
logWarn(java.lang.String message,
java.lang.Object... args)
Log a warn level message with items to be incorporated into the message string
|
static void |
setLogger(LoggerProvider logger)
Set the
LoggerProvider that the LoggerProvider will use. |
public static void setLogger(LoggerProvider logger)
LoggerProvider
that the LoggerProvider
will use.logger
- The PermissioningLogger
to use when logging.public static void logError(java.lang.String message)
message
- public static void logError(java.lang.String message, java.lang.Throwable t)
message
- the message (non-parameterised)t
- the Throwable to be loggedpublic static void logWarn(java.lang.String message)
message
- public static void logWarn(java.lang.String message, java.lang.Object... args)
message
- the message in the form "user name was: {0}"args
- the arguments to substitute into the message e.g. user.getName();public static void logInfo(java.lang.String message)
message
- public static void logInfo(java.lang.String message, java.lang.Object... args)
message
- args
- public static void logDebug(java.lang.String message)
message
- public static void logDebug(java.lang.String message, java.lang.Object... args)
message
- the message in the form "user name was: {0}"args
- the arguments to substitute into the message e.g. user.getName();Please send bug reports and comments to Caplin support