locked
How enterprise library logging and exception handling works? RRS feed

  • Question

  • User1845630209 posted

    Hi,

    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">

          <listeners>

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

    </listeners>

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

    Also

    I can see exeception handling configuration as follows:

        <exceptionHandling>
            <exceptionPolicies>
                <add name="Log Only Policy">
                    <exceptionTypes>
                        <add type="System.Exception, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" postHandlingAction="None" name="Exception">
                            <exceptionHandlers>
                                <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