Home > Getting Started > Web.config > Configuration/loggingConfiguration
Configuration/loggingConfiguration
<loggingConfiguration>
This section refers to the Microsoft Enterprise Library Logging Application Block which defines all aspects of logging and tracing. If the AuctionWorx code attempts to persist a log or trace message, this section defines how, when, where that message will be persisted.
Usage
The user may modify this section where appropriate. Specifically, location of log/trace files, their formats, and any filters. A solid understanding of the Microsoft Enterprise Library Logging Application Block is required before these values are modified.
Example
To change the log file location, you would change the highlighted value below
<add name="Error Flat File Destination" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Culture=neutral" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Culture=neutral" fileName="C:\Logs\error.log" header="----------------RainWorx FrameWorx .NET Error Start----------------------" footer="-----------------RainWorx FrameWorx .NET Error End------------------------" formatter="Default Formatter" traceOutputOptions="None" filter="All" />
See also
|