DebugService

The DebugService logs messages from applications on the class level, using the LogService.

Unlike the LogService, which only supports one general log level per LogManager, the logging itself and the logging level can be set per class in the DebugService. However, the application being logged must support the use of the debug service.

XML configuration


Important note: The availability of a service depends on the license purchased and whether the service has been registered in the configuration file ./etc/factory.xml of the Service Factory (changes require server restart!). There you will also find the responsible configuration file for a service, otherwise you can also edit the configuration file of the service directly in the GUI of the service (changes require a service restart!).

Setting the "LogManager" to use


The following XML fragment sets the LogManager to be used by the DebugService.


<Set name="logManager">File</Set>


The value File corresponds to the name of the LogManager, as specified in the configuration of the LogService.

Setting the default debug level


The following XML fragment sets the default debug level to use when adding new classes without specifying a specific log level.


<Set name="defaultDebugLevel">2</Set>


Value

Description

0

Production - This is the lowest level and produces the fewest entries.

1

Low

2

Medium - This is the default level after installing the Integration Server.

3

High

4

All - This is the log level that creates the most entries.

Adding a class without specifying an explicit debug level


To add a class using the default debug level, use the following XML fragment.

<Call name="addClass">
<Arg>name_of_the_class_to_be_added</Arg>
</Call>


Attention: Changing the default log level does not affect any classes already added.

Adding a class specifying an explicit debug level

If a class is to be added with a specific log level, this is done with the following XML fragment.

<Call name="addClass">
<Arg>name_of_the_class_to_be_added</Arg>
<Arg type="int">2</Arg>
</Call>


The second parameter specifies the log level.

General settings


Attention: Changes will be lost after restarting the service.


images/download/attachments/189461508/Services_10_EN-version-1-modificationdate-1737965339130-api-v2.png


(1) The list of classes added so far. Changes can be made via the context menu.