Interface Loggable
- All Known Implementing Classes:
ValidationFailedException
public interface Loggable
An interface telling whether an object is loggable or not.
Used by the RemoteDbDelegateInvocationHandler of tentackle-database, for example.
If used with exceptions, it usually tells whether the stacktrace should be logged or not.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptiondefault Logger.LevelGets the log-level this object should be logged with.default booleanReturns whether to log the stacktrace.
-
Method Details
-
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
-