Interface Loggable

All Known Implementing Classes:
ValidationFailedException

public interface Loggable
An interface telling whether an object is loggable or not.

Used by the RemoteDelegateInvocationHandler, for example.
If used with exceptions, it usually tells whether the stacktrace should be logged or not.

Author:
harald
  • Method Summary

    Modifier and Type
    Method
    Description
    default Logger.Level
    Gets the log-level this object should be logged with.
    default boolean
    Returns whether to log the stacktrace.
  • Method Details

    • getLogLevel

      default Logger.Level getLogLevel()
      Gets the log-level this object should be logged with.
      Returns:
      the log level, null if no logging at all
    • withStacktrace

      default boolean withStacktrace()
      Returns whether to log the stacktrace.
      Returns:
      true if with stacktrace, false if message only