shouldForceLogging

public static boolean shouldForceLogging(String loggerName, Level level, boolean isEnabled)

Returns whether the given logger should have logging forced at the specified level. When logging is forced for a log statement it will be emitted regardless or the normal log level configuration of the logger and ignoring any rate limiting or other filtering.

This method is intended to be invoked unconditionally from a fluent logger's at(Level) method to permit overriding of default logging behavior.

Parameters

loggerName

the fully qualified logger name (e.g. "com.example.SomeClass")

level

the level of the log statement being invoked

isEnabled

whether the logger is enabled at the given level (i.e. the result of calling isLoggable() on the backend instance)