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.

@FunctionalInterface public interface DittoLogCallback

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 Type
    Method
    Description
    void
    log(DittoLogLevel logLevel, String message)
    Called when a log message is emitted by Ditto.
  • Method Details

    • log

      void log(DittoLogLevel logLevel, String message)
      Called when a log message is emitted by Ditto.
      Parameters:
      logLevel - the DittoLogLevel indicating the severity of the message.
      message - the log message string.