should Force Logging
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.
Implementations which do not support forced logging should not override this method; the default implementation returns false.
loggerName can be used to look up specific configuration, such as log level, for the logger, to decide if a log statement should be forced. This information might vary depending on the context in which this call is made, so the result should not be cached.
isEnabledByLevel indicates that the log statement is enabled according to its log level, but a true value does not necessarily indicate that logging will occur, due to rate limiting or other conditional logging mechanisms. To bypass conditional logging and ensure that an enabled log statement will be emitted, this method should return true if
isEnabledByLevel was true.
WARNING: This method MUST complete quickly and without allocating any memory. It is invoked for every log statement regardless of logging configuration, so any implementation must go to every possible length to be efficient.
Parameters
the fully qualified logger name (e.g. "com.example.SomeClass")
the level of the log statement being invoked
whether the logger is enabled at the given level