Try OpenEdge Now
skip to main content
New Information
OpenEdge Replication : Logging level for Replication
 

Logging level for Replication

OpenEdge Replication allows you to set the logging level for both the server and the agent. The logging level can be set at startup through the properties files, and can be changed while the system is running through a utility. The messages generated are written to either the repl.agent.lg or the repl.server.lg file, based on where in the properties file the logging level is set, or which database the utility is run against. If a logging level is not specified, logging is off.

Logging Levels

The table that follows describes the logging levels.
Logging Level
Description
0 (None)
Logs no entries.
This is equivalent to turning logging off.
1 (Errors)
Logs OpenEdge Replication error messages.
This is the minimum amount of logging.
2 (Basic)
Logs "basic" information such as the start and end of transactions and connections as well as summary information. Errors logged at Level 1 are also logged.
This is the suggested logging level.
3 (Verbose)
Log all messages and details, including the information logged at Level 1 and 2.

Configuring logging level in properties file

You can set your logging level when you configure your replication and agent(s) in the repl.properties file. For both the [agent] and [server] sections of your properties file, add the following:
logging-level=n
Where n is an integer between 0 and 3.

Setting logging level while Replication is running

You can set or change the logging level while Replication is running for both the Replication server and agents. Use the following command to change the level:
dsrutil dbname -C logginglevel new-logging-level
dbname
Name of the database; specify the source database for the server or a target database for an agent.
new-logging-level
The new logging level to set. It must be an integer between 0 and 3.
The new logging level remains in effect until you change it again online, or until Replication restarts. If the Replication server or agent is restarted, the logging-level value set in the repl.properties file is used.