This content has been marked as final. Show 2 replies
If you want message X to go to a different destination than message Y does, then you'd use a different LOGGER for message X than you would for Y.
When you're logging the message, you know what level you're logging it at, right? So instead of just logging everything to the same logger with different levels, log to different loggers.
Thanks for your response. Even though I have different loggers, a higher level message (ERROR) still gets recorded with the lower level messages (WARN).
I want to specify that logger X should only take WARN level messages, nothing else.
Any help is still very much appreciated.