The default configuration for the Logging QuickStart has the following attributes:
- General settings:
- Tracing is enabled.
- The default category is General.
- Filters:
- The category filter will allow all categories except UI Events.
- The priority filter will only allow events with a priority value of 2 or higher
- Categories:
- Events in category Data Access Events are delivered to the Flat File Destination listener.
- Events in category Debug are delivered to the Debug Destination listener.
- Events in category General are delivered to the Event Log Destination listener.
- Events in category Troubleshooting are delivered to the Event Log Destination listener.
- Events in category UI Events are delivered to the Flat File Destination listener.
- Events in category Trace are delivered to the Flat File Destination listener.
- Special sources:
- Events that occur due to an error are delivered to the Event Log Destination.
- Listeners:
- The Event Log Destination uses the Text Formatter to format the message and writes the result to the Application Event Log.
- The Flat File Destination uses the Text Formatter to format the message and writes the result to the file named trace.log.
- The Debug Destination uses the Text Formatter to format the message and writes the result to the Visual Studio Output Window.
- Formatters:
- The Text Formatter constructs a string with name value pairs for the LogEntry properties.
The Logging QuickStart ships with a defined configuration, which is included in the App.config file. This file is located in the same folder as the QuickStart project file. Each time you build the code, Visual Studio copies the App.config file to the output directory for the project (the same directory where the QuickStart executable is created), and renames it to LoggingQuickStart.exe.config.
To change or view these settings, use the Enterprise Library configuration tools to open the App.config file in the directory that contains the QuickStart project file. The App.config file contains the configuration data.
You can also change the application configuration when you do not plan to recompile the application by opening the LoggingQuickStart.exe.config file with the Enterprise Library configuration tools. However, these changes will be overwritten during the next successful build.