Class LogbackCommunicatorLogger
java.lang.Object
com.github.robtimus.connect.sdk.java.springboot.logging.LogbackCommunicatorLogger
- All Implemented Interfaces:
CommunicatorLogger
A communicator logger that is backed by a
Logger
.- Author:
- Rob Spoor
-
Constructor Summary
ConstructorDescriptionLogbackCommunicatorLogger
(Logger logger, Level level) Creates a new communicator logger.LogbackCommunicatorLogger
(Logger logger, Level logLevel, Level errorLogLevel) Creates a new communicator logger. -
Method Summary
-
Constructor Details
-
LogbackCommunicatorLogger
Creates a new communicator logger.- Parameters:
logger
- The backing logger.level
- The level to use when logging through bothlog(String)
andlog(String, Throwable)
.
-
LogbackCommunicatorLogger
Creates a new communicator logger.- Parameters:
logger
- The backing logger.logLevel
- The level to use when logging throughlog(String)
.errorLogLevel
- The level to use when logging throughlog(String, Throwable)
.
-
-
Method Details
-
log
- Specified by:
log
in interfaceCommunicatorLogger
-
log
- Specified by:
log
in interfaceCommunicatorLogger
-