Package com.caplin.permissioning.logging
Class JavaUtilLoggerProvider
java.lang.Object
com.caplin.permissioning.logging.JavaUtilLoggerProvider
- All Implemented Interfaces:
LoggerProvider
An adapter for
PermissioningLogger
, so that the Permissioning system can log to the java
Logger
. By default the PermissioningDataSource
uses the Logger
set up by
DataSource for Java.-
Constructor Summary
ConstructorsConstructorDescriptionJavaUtilLoggerProvider
(Logger logger) Creates a PermissioningLoggerProvider
that adapts Permissioning logging to theLogger
provided. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a debug level message to theLogger
that this class was created with.void
Log a debug level message to theLogger
that this class was created with.void
Log an error level message to theLogger
that this class was created with.void
Log an error level message to theLogger
that this class was created with.void
Log an info level message to theLogger
that this class was created with.void
Log an info level message to theLogger
that this class was created with.void
Log a warn level message to theLogger
that this class was created with.void
Log a warn level message to theLogger
that this class was created with.
-
Constructor Details
-
JavaUtilLoggerProvider
Creates a PermissioningLoggerProvider
that adapts Permissioning logging to theLogger
provided.- Parameters:
logger
- the logger to log to.
-
-
Method Details
-
logDebug
Log a debug level message to theLogger
that this class was created with.- Specified by:
logDebug
in interfaceLoggerProvider
- Parameters:
message
- the message to log
-
logDebug
Log a debug level message to theLogger
that this class was created with.- Specified by:
logDebug
in interfaceLoggerProvider
- Parameters:
message
- the message to logargs
- the objects to merge into the message string
-
logError
Log an error level message to theLogger
that this class was created with.- Specified by:
logError
in interfaceLoggerProvider
- Parameters:
message
- the message to log
-
logError
Log an error level message to theLogger
that this class was created with.- Specified by:
logError
in interfaceLoggerProvider
- Parameters:
message
- the message to logthrowable
- the throwable to merge into the message string
-
logInfo
Log an info level message to theLogger
that this class was created with.- Specified by:
logInfo
in interfaceLoggerProvider
- Parameters:
message
- the message to log
-
logInfo
Log an info level message to theLogger
that this class was created with.- Specified by:
logInfo
in interfaceLoggerProvider
- Parameters:
message
- the message to logargs
- the objects to merge into the message string
-
logWarn
Log a warn level message to theLogger
that this class was created with.- Specified by:
logWarn
in interfaceLoggerProvider
- Parameters:
message
- the message to log
-
logWarn
Log a warn level message to theLogger
that this class was created with.- Specified by:
logWarn
in interfaceLoggerProvider
- Parameters:
message
- the message to logargs
- the objects to merge into the message string
-