Interface DittoLogCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface for receiving Ditto log messages.
Implement this interface to receive log messages from Ditto's internal logging system. This allows you to integrate Ditto logs with your application's logging framework.
Example usage:
`DittoLogCallback callback = (logLevel, message) ->{System.out.println("[" + logLevel + "] " + message);};DittoLog.setLogCallback(callback);`
-
Method Summary
Modifier and TypeMethodDescriptionvoidlog(DittoLogLevel logLevel, String message) Called when a log message is emitted by Ditto.
-
Method Details
-
log
Called when a log message is emitted by Ditto.- Parameters:
logLevel- theDittoLogLevelindicating the severity of the message.message- the log message string.
-