Package com.couchbase.client.core.cnc
Interface LoggerFormatter
-
- All Known Implementing Classes:
DefaultLoggerFormatter
public interface LoggerFormatter
Interface allowing to customize the output format of the logger (right now only used for console logging).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
format(Level logLevel, String message, Throwable throwable)
Formats the inputs into a string that will be printed.
-
-
-
Method Detail
-
format
String format(Level logLevel, String message, @Nullable Throwable throwable)
Formats the inputs into a string that will be printed.- Parameters:
logLevel
- the log level.message
- the message.throwable
- the throwable, which can be null.- Returns:
- the formatted string that will be printed onto the console.
-
-