How enterprise library logging and exception handling works? RRS feed

  • Question

  • User1845630209 posted


    I am very new to Enterprise library, could anybody let me know how logging and exception handling is configured and working. I can see in my web.config file the following:

    <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="" logWarningsWhenNoCategoriesMatch="true">


                   <add fileName="trace.log" header="----------------------------------------" footer="----------------------------------------" formatter=""


    but I am not able to figure out where "trace.log" is stored(the folder path).


    I can see exeception handling configuration as follows:

                <add name="Log Only Policy">
                        <add type="System.Exception, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="None" name="Exception">
                                <add logCategory="Default Category" eventId="100" severity="Error ...

    Could anybody let me know if any exeception occures will it log the exception, if yes how it is(please let me know what is exeception polices).

    Thanks in advance

    Wednesday, December 21, 2011 3:34 AM

All replies