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
Note: If you want to modify the configuration file for a service directly in the file system, you will find the appropriate file in the configuration file ./etc/factory.xml. Details about the configuration can be found in the respective documentation of a service. Otherwise, you can edit the configuration file directly via the respective service in the GUI.
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.
(1) The list of classes added so far. Changes can be made via the context menu.