Logging by specified TraceListener

Topics: Logging Application Block
Aug 17, 2008 at 8:57 PM
Hi mates,

    I need to configure the enterprise library like in this specification:

Function               Destination                    Category                    Priority         Title        Severity
WriteException     EventLog, File, Debug       Error, Trace, Debug            1             Error          Error

I don't really know how to do it. I made such thing:

    Referenced TraceListeners:
        -EventLog TL
        -Debug TL
        -File TL

    -EventLog TL
    -File TL
    -Debug TL

    -EventLog TF
    -Debug TF
    -File TF

Then in exception block I've added one exception handler for IOException and as LogCategory set my Error. But what if I like to log this exception for File only not to other sources ? How can I configure my app to log things only where I want or how to make this in code ?

Thanks and regards