Purpose of DEBUG, TRACE, or VERBOSE Logging
When trying to troubleshoot a problem, it can often be helpful to increase the logging level of the affected component. This should be done with great care because the amount of information logged is substantially larger. Logging should be returned to a normal level after troubleshooting. Do not leave DEBUG, TRACE, or VERBOSE logging enabled, because that will result in Riva creating a lot of large log files and reduce sync performance.
Manual Procedure — in a Config File
How to enable DEBUG, TRACE, or VERBOSE logging
DEBUG, TRACE, or VERBOSE logging is enabled by creating or updating a .config file for the service executable or application that you want to enable that kind of logging for:
- Riva Manager application: RivaApp.exe.config
- Riva CRM Agent for Exchange or Domino/Notes: Omni.Riva.CrmAgentEx.exe.config
- Riva CRM Agent for GroupWise: Omni.Riva.CrmAgent.exe.config
- Riva Identity Integration Agent (GroupWise for AD): Omni.Riva.IIAgent.exe.config
To modify the logging level, add the following app.setting to the applicable .config file in the Riva\Application\Base or Riva\Application\<version number> folder (see How to create an App.Setting file to enable advanced options):
<add key="LoggingLevel" value="LEVEL" /> where "LEVEL" indicates the logging level, for example "DEBUG":
<add key="LoggingLevel" value="DEBUG" /> (To enable DEBUG logging mode.)
<add key="LoggingLevel" value="TRACE" /> (To enable TRACE logging mode.)
<add key="LoggingLevel" value="VERBOSE" /> (To enable VERBOSE logging mode.)
An example that can be copied and pasted into a blank file:
<configuration>
<appSettings>
<add key="LoggingLevel" value="DEBUG" />
</appSettings>
</configuration>
Based on the above component that you want to modify, create a text file in which the advanced configurations are entered. This file needs to be saved to the latest Riva application folder:
- Riva\Application\Base for a new installation
- Riva\Application\<latest version> for an updated installation.
IMPORTANT! Save the file, and restart the component. To restart the component, do any of the following:
- In the Riva Service Monitor, select Restart; or
- Exit the Riva Manager application, and restart it.
How to disable DEBUG, TRACE, or VERBOSE logging
To return logging levels to a normal level:
-
Do one of the following:
-
In the .config file where the DEBUG, TRACE, or VERBOSE logging was enabled, remove any line that is identical to one of these:
-
<add key="LoggingLevel" value="DEBUG" />,
-
<add key="LoggingLevel" value="TRACE" />, or
-
<add key="LoggingLevel" value="VERBOSE" />
-
-
Modify the .config file to change the key value from DEBUG, TRACE, or VERBOSE to INFO
- OR - -
Rename the .config file by adding a .bak extension to the file name. DO NOT do this if there are other keys in the file unless you need to disable them too.
-
-
If that was the only "add key=" line in the file, remove the .config file from its folder. Otherwise, save the file, and retain it in its folder.
-
Start the Riva sync service in the Riva Service Monitor application or in the Windows services applet (services.msc) or restart the Riva Manager application.
Riva upgrades preserve .CONFIG files
The Riva upgrade process copies the .CONFIG files to the latest version folder.
Procedure in the Riva Manager Application
Riva 2.4.42 or higher.
To enable the logging level in the Riva Manager application:
-
In the Riva Manager application, on the menu bar, select Tools, and then choose Set Logging Level.
-
In the Set Logging Level window that appears, select a level, and then select Save.
-
Restart the Riva Service Monitor to put the change into effect.