Class JavaUtilLoggerProvider

java.lang.Object
com.caplin.permissioning.logging.JavaUtilLoggerProvider
All Implemented Interfaces:
LoggerProvider

public class JavaUtilLoggerProvider extends Object implements 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

    Constructors
    Constructor
    Description
    Creates a Permissioning LoggerProvider that adapts Permissioning logging to the Logger provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logDebug(String message)
    Log a debug level message to the Logger that this class was created with.
    void
    logDebug(String message, Object... args)
    Log a debug level message to the Logger that this class was created with.
    void
    logError(String message)
    Log an error level message to the Logger that this class was created with.
    void
    logError(String message, Throwable throwable)
    Log an error level message to the Logger that this class was created with.
    void
    logInfo(String message)
    Log an info level message to the Logger that this class was created with.
    void
    logInfo(String message, Object... args)
    Log an info level message to the Logger that this class was created with.
    void
    logWarn(String message)
    Log a warn level message to the Logger that this class was created with.
    void
    logWarn(String message, Object... args)
    Log a warn level message to the Logger that this class was created with.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavaUtilLoggerProvider

      public JavaUtilLoggerProvider(Logger logger)
      Creates a Permissioning LoggerProvider that adapts Permissioning logging to the Logger provided.
      Parameters:
      logger - the logger to log to.
  • Method Details

    • logDebug

      public void logDebug(String message)
      Log a debug level message to the Logger that this class was created with.
      Specified by:
      logDebug in interface LoggerProvider
      Parameters:
      message - the message to log
    • logDebug

      public void logDebug(String message, Object... args)
      Log a debug level message to the Logger that this class was created with.
      Specified by:
      logDebug in interface LoggerProvider
      Parameters:
      message - the message to log
      args - the objects to merge into the message string
    • logError

      public void logError(String message)
      Log an error level message to the Logger that this class was created with.
      Specified by:
      logError in interface LoggerProvider
      Parameters:
      message - the message to log
    • logError

      public void logError(String message, Throwable throwable)
      Log an error level message to the Logger that this class was created with.
      Specified by:
      logError in interface LoggerProvider
      Parameters:
      message - the message to log
      throwable - the throwable to merge into the message string
    • logInfo

      public void logInfo(String message)
      Log an info level message to the Logger that this class was created with.
      Specified by:
      logInfo in interface LoggerProvider
      Parameters:
      message - the message to log
    • logInfo

      public void logInfo(String message, Object... args)
      Log an info level message to the Logger that this class was created with.
      Specified by:
      logInfo in interface LoggerProvider
      Parameters:
      message - the message to log
      args - the objects to merge into the message string
    • logWarn

      public void logWarn(String message)
      Log a warn level message to the Logger that this class was created with.
      Specified by:
      logWarn in interface LoggerProvider
      Parameters:
      message - the message to log
    • logWarn

      public void logWarn(String message, Object... args)
      Log a warn level message to the Logger that this class was created with.
      Specified by:
      logWarn in interface LoggerProvider
      Parameters:
      message - the message to log
      args - the objects to merge into the message string