Package com.luciad

Interface ILoggingBackend


public interface ILoggingBackend
Backend for the logging in this library.

Users can implement this backend to delegate the internal logging to their framework of choice. The implementation must then be configured during global initialization in order to be used by this library.

Implementations must be thread-safe. All methods will be called concurrently from various threads.

Note that the only purpose of this interface is to facilitate redirecting the logging performed by this library. We expect that, in your own code, you use your framework of choice directly.

  • Method Details

    • newLogger

      @NotNull Object newLogger(@NotNull String name)
    • isEnabled

      boolean isEnabled(@Nullable Object handle, @NotNull LogLevel level)
    • log

      void log(@Nullable Object handle, @NotNull LogLevel level, @NotNull String message)
    • log

      void log(@Nullable Object handle, @NotNull LogLevel level, @NotNull String message, @NotNull Throwable exception)
    • deleteLogger

      void deleteLogger(@Nullable Object handle)