Trace Listeners Filtering does not restict output.

Last post 06-17-2009 4:28 PM by schwartzenberg. 1 replies.

Sort Posts:

  • Trace Listeners Filtering does not restict output.

    06-17-2009, 3:38 PM

    I have a JobEntry with Severity=Infomation,  and in my configurtion file the relevant CategorySource has its SwitchValue=Infomation, but with the Destination (the categories TraceListener) has its Filter=Warning.

    Why do i get the trace output?  

    You see, I  would think that the TraceListener with Filter=Warning, which does not include Information Events, would restrict the output.

    When doesn't it? 

    In what scenario would hte Filter attribute on the TraceListener, restrict output? 

     Thanks,  Paul

  • Re: Trace Listeners Filtering does not restict output.

    06-17-2009, 4:28 PM

    I debugged it through.

    It seems in EntLib41Src\Blocks\Logging\Src\Logging\LogSource.cs at

    listener.TraceData(manager, Name, eventType, id, logEntry);

     That the lister object has its Filter property set to the value Information and that the Destination (TraceListener) Filter attribute (whatever value it has) - it has no ramification.

    I don't know whether it is intended so, .... it might be a bug.

    Regards,

    Paul

Page 1 of 1 (2 items)