The more difficult but more powerful - tigase.xml file (only applicable to versions before 5.0.0)
Prev | Chapter 37. Debuging Tigase | Next

## The more difficult but more powerful - tigase.xml file (only applicable to versions before 5.0.0)

If you want to modify debugging settings without regenerating the whole XML config file you can modify it yourself manually and add debug entries. This must be done very carefully or you break the XML file and configuration won’t work.

Anyway. Open the XML config file with some good text editor (or XML editor) and find the line:

    <node name="logging">

Below is a long list of all logging settings. One of them is:

    <entry value="INFO" type="String" key=".level"/>

Which says: INFO debug level for all the code. This level gives you very little debugging information. Therefore for example your init.properties line --debug=server adds one extra line in there:

    <entry value="ALL" type="String" key="tigase.server.level"/>

I think now everything should be clear. You need to add a similar line changing only "key" attribute. If you need to switch logging on for a specific class - tigase.xmpp.XMPPIOService for example, add:

    <entry value="ALL" type="String" key="tigase.xmpp.XMPPIOService.level"/>

You can also put there your own package or class name. After you changed the config file you have to restart the server.

Note, don’t overdose the debugging or your logs are full of trash you can read.

Prev | Up | Next
Chapter 37. Debuging Tigase | Home | Chapter 38. Importing User Data