Previous Topic: Recommended LogsNext Topic: List Which Logs Are Open


Open a Log File

To allow a CA Directory DSA to log information, you must open the relevant log file. The DSA writes output to that file.

If a log file does not exist when opened, it is created. If it already exists, the DSA appends new output to the existing output in the file.

When you close a log file, the DSA stops sending output to the log file. When the DSA shuts down, it automatically closes any open log file.

If the log file name contains the string $s, then the system substitutes the name of the DSA.

To open a log file, use the following command:

set log-type = log-name;

For example, to open the query log, enter the following command:

set query-log = "logs/$s.log";

To close a log file, use the following command:

close log-type;

You can configure the logs using the commands listed in Commands for Logging in the Reference.

More information:

set log Command