0

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:

  1. ErrorAppender has a threshold value of "ERROR"
  2. 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.

John Doe
  • 3,053
  • 17
  • 48
  • 75
  • Not a duplicate. I have the setting set as the linked article and still have the issue. – John Doe May 17 '16 at 11:29
  • In order to get the desired results a filter range was needed to accomplish this. The threshold setting did not accomplish this be itself. – John Doe May 17 '16 at 12:32
  • I guess when they log it as duplicate (and it's not) then there is no reviving this question. – John Doe Jun 02 '16 at 17:27

0 Answers0