locked
Trace Listeners Filtering does not restict output. RRS feed

  • Question

  • User-29481391 posted

    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

    Wednesday, June 17, 2009 3:38 PM

All replies

  • User-29481391 posted

    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

    Wednesday, June 17, 2009 4:28 PM