Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Description
I recently had a problem where a non-trivial error was logged to the StatusManager, but no StatusListener was defined.
StaticLoggerBinder does have a:
if(!StatusUtil.contextHasStatusListener(defaultLoggerContext)) {
StatusPrinter.printInCaseOfErrorsOrWarnings(defaultLoggerContext);
}
but this didn't help because the warning occurred after this point.
I think it would be useful to log a warning when no StatusListener is registered. Users who really really don't want a StatusListener could register a 'NoopStatusListener' or something similar.