Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space DMOWT and version 7.21

...

Sv translation
languageen

Server diagnostics section. It includes the following elements:

  • <trace>. Diagnostics module general settings;
  • <sources>. Individual Server components diagnostics settings;
  • <switches>. Managing diagnostic system's overall level of detail.

<trace> element
Якорь
1
1

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
Якорь
2
2

Used to configure individual application modules. Includes <source> child elements, one for each application module (see the Server module list in Раздел <applicationSettings> section).

The list of modules also includes secondary ones which are needed for debugging output for main components:

  • InfoWatch.DeviceMonitor.Server.FileIdentification.Core – module describing the signatures object model;
  • InfoWatch.DeploymentSubSystem – module of the subsystem responsible for deployment on computers;
  • InfoWatch.DeviceMonitor.EventPostProcessorManager – module for post-processing of print events;
  • InfoWatch.DeviceMonitor.ScreenShotStorage – module for saving screenshots on the file system;
  • InfoWatch.DeviceMonitor.Server.Remote.Install – module for launching the remote installation, update or uninstallation of the Agent.

Element attributes

<source> element has the following attributes:

  • name. Server module name;
  • switchName. Name of the module that defines diagnostics (detalizer's) level of detail;
  • switchType. Type of the module that defines diagnostics level of detail. Is always set to System.Diagnostics.SourceSwitch.

<listeners> element

Each <source> element also contains a definition for diagnostic messages receiver (<listeners> child element). Diagnostic messages can be received by:

  • Windows application log (Application log);
  • System debug output (can be viewed with special tools like DebugView);
  • Text file.

This element contains parameters of diagnostic messages receiver. <listeners> element may contain the following child elements:

  • <add>. Add a new diagnostic messages receiver;
  • <remove>. Delete diagnostic messages receiver. 

<add> element
Якорь
4
4

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 the source column.

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 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
Якорь
5
5

Deleting message receiver. It is usually used to remove default receiver that displays diagnostic messages in Windows debug output:

Блок кода
languagetext
<remove name="Default" />

<switches> element
Якорь
3
3

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:

Блок кода
languagetext
<add name="applicationLogger" value="Information"/>

Level of detail is specified as the value attribute.