public class JdkCommunicatorLogger extends Object implements CommunicatorLogger
Logger
.Constructor and Description |
---|
JdkCommunicatorLogger(Logger logger,
Level level)
Creates a new communicator logger.
|
JdkCommunicatorLogger(Logger logger,
Level logLevel,
Level errorLogLevel)
Creates a new communicator logger.
|
Modifier and Type | Method and Description |
---|---|
void |
log(String message)
Logs a message.
|
void |
log(String message,
Throwable thrown)
Logs a throwable with an accompanying message.
|
public JdkCommunicatorLogger(Logger logger, Level level)
logger
- The backing logger.level
- The level to use when logging through both log(String)
and log(String, Throwable)
.public JdkCommunicatorLogger(Logger logger, Level logLevel, Level errorLogLevel)
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)
.public void log(String message)
CommunicatorLogger
log
in interface CommunicatorLogger
message
- The message to log.public void log(String message, Throwable thrown)
CommunicatorLogger
log
in interface CommunicatorLogger
message
- The message accompanying the throwable.thrown
- The throwable to log.Copyright © 2024 Worldline Global Collect. All rights reserved.