Class LogbackCommunicatorLogger

java.lang.Object
com.github.robtimus.connect.sdk.java.springboot.logging.LogbackCommunicatorLogger
All Implemented Interfaces:
CommunicatorLogger

public class LogbackCommunicatorLogger extends Object implements CommunicatorLogger
A communicator logger that is backed by a Logger.
Author:
Rob Spoor
  • Constructor Details

    • LogbackCommunicatorLogger

      public LogbackCommunicatorLogger(Logger logger, Level level)
      Creates a new communicator logger.
      Parameters:
      logger - The backing logger.
      level - The level to use when logging through both log(String) and log(String, Throwable).
    • LogbackCommunicatorLogger

      public LogbackCommunicatorLogger(Logger logger, Level logLevel, Level errorLogLevel)
      Creates a new communicator logger.
      Parameters:
      logger - The backing logger.
      logLevel - The level to use when logging through log(String).
      errorLogLevel - The level to use when logging through log(String, Throwable).
  • Method Details