1
|
Select Start > Programs > Microsoft patterns and practices > Enterprise Library 4.1 > Enterprise Library Configuration. The Enterprise Library Configuration window appears.
|
2
|
3
|
4
|
5
|
In the Name pane, select Name. Type the name of the new category, and then press ENTER. The following example creates the category name PSQL Error.
|
7
|
Right-click the new category and select New > TraceListener Reference. A Formatted EventLog TraceListener node is added. From the ReferencedTraceListener drop-down list, select Formatted EventLog TraceListener.
|
9
|
Select File > Save Application. In the Save As dialog, enter a name for your configuration file. By default, the file is saved to C:\Program Files\Microsoft Enterprise Library\Bin\filename.exe.config, where filename is the name that you entered for Save As.
|
1
|
2
|
Right-click Application Configuration, then select New > Logging Application Block. The Configuration section appears in the right pane.
|
3
|