...
| Sv translation | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
Server diagnostics section. It includes the following elements:
<trace> element
Used to describe global module diagnostics settings. In this element, you can specify message margins indentation and parameters for saving diagnostics data saving parametersstream data to the hard drive. <sources> element
Used to configure individual application modules. Includes The list of modules also includes secondary ones which are needed for debugging output for main components:
Element attributes
|
| Якорь | ||||
|---|---|---|---|---|
|
This item adds diagnostic messages receiver to Server module. Element contains the following attributes:
name. Diagnostic messages receiver name;type. Diagnostic messages receiver type;initializeData. Server module ID. Typically, this value is the same as Server module name. If Windows application log is the receiver, this information appears in thesourcecolumn.
Receiver type is a fully qualified receiver name from .NET framework library or proprietary type that implements the required diagnostic messages receiver interface.
.NET framework library contains the following diagnostic messages receiver types:
System.Diagnostics.EventLogTraceListener. Windows application log;System.Diagnostics.ConsoleTraceListener. Console message output;System.Diagnostics.TextWriterTraceListener. Text file output;System.Diagnostics.DefaultTraceListener. Debug Windows output (enabled by default).
<add> element also contains diagnostic messages filter. This filter only displays the messages with level of detail exceeding the filter parameters. It features the following levels of detail (listed in descending priority order):
Verbose. Debug level. All events are logged. This level can only be used for System debugging. This level does is not allowed for a system running in normal mode, since it cuts the performance significantly;Information. Information level. Registers the events that are not related to errors, for example, information on server Server parameter changes;Warning. Warning level. Registers non-critical System errors, such as an unexpected disconnection from the Server, connection timeout, etc;Error. Error level. Records errors that cause System malfunction (i.e., errors that require troubleshooting);Critical. Critical level. Registers serious malfunctions that can lead to make the System shutdowninoperable.
Example 1
Detalizer features Verbose logging level, while module filters feature Warning level. Then detalizer ignores Warning, Error and Critical events, but filters out Information and Verbose events.
Example 2
Detalizer features Error logging level, while module filters feature Warning level. In this case, detalizer ignores Error and Critical events, but filters out Warning, Information and Verbose events. This happens because overall System level of detail is Error, i.e. only Error events and higher are registered regardless of the filter settings.
<remove> element
| Якорь | ||||
|---|---|---|---|---|
|
Deleting message receiver. It is usually used to remove default receiver that displays diagnostic messages in Windows debug output:
| Блок кода | ||
|---|---|---|
| ||
<remove name="Default" /> |
<switches> element
| Якорь | ||||
|---|---|---|---|---|
|
Defines Server detalizers. Typically, there is only one detalizer, which sets the global (for entire Server) level of detail of the diagnostic system. If individual Server modules require lower level of detail, you can use filters. General The general detalizer's value must contain correspond to the maximum detail level of one of the modules.
<switches> element contains only one child element by default:
| Блок кода | ||
|---|---|---|
| ||
<add name="eventLogapplicationLogger" value="WarningInformation"/> |
Level of detail is specified as the value attribute.