I have 2 appenders that I have created and I would like to log all error messages to the ErrorAppender and all of the info messages to the InfoAppender.
However my InfoAppender is occasionally picking up an error message.
I am wondering if I need to use a filter instead of the threshold.
My appenders:
- ErrorAppender has a threshold value of "ERROR"
- InfoAppender has a threshold value of "INFO"
My config:
<root>
<level value="ALL" />
<appender-ref ref="ErrorAppender" />
<appender-ref ref="InfoAppender" />
</root>
In my code I am using ILOG.Error() or ILOG.Info() to log my messages.