Logging and Tracing Parameters
Use
Logging and tracing parameters use a configuration file named log-configuration.xml. This file is predelivered for the client.
Features
Statements in the Log Configuration File
As delivered, this file contains the following statements:
<?xml version="1.0" encoding="utf-8"?> <LogTraceConfig> <!-- Trace Setting --> <TraceSeverity value="ERROR" /> <TraceDestination value="" /> <TraceFileCount value="10" /> <MaxTraceSize value="10" /> <TraceUser value="" /> <!-- Log Setting --> <LogSeverity value="INFO" /> <LogDestination value="" /> <LogFileCount value="10" /> <MaxLogSize value="10" /> <!-- Application Set setting --> <AppSet value="" /> </LogTraceConfig>
The following sections explain the meanings of the components of each part of the log-configuration.xml file.
Trace Settings
The following table explains the parameters of the Trace Setting section of the log-configuration.xml file.
|
Parameter |
Default Value |
Meaning |
|---|---|---|
|
TraceSeverity |
ERROR |
You use the trace severity to control the number of trace records that are produced. The following trace severity levels are supported:
Choosing a severity level means that trace records with the chosen severity, together with all more. severe trace records, are written to the trace file. For example, choosing INFO means that all information, warning, and error trace records are written to the file. DONOTHING is a special severity level. If you set it as value, no trace records are written to file. This is effectively switching off Trace. If you set another value for TraceSeverity, for example, ERR, it is treated as DONOTHING. |
|
TraceDestination |
Empty |
The location where you want to store the trace files. For example, <TraceDestination value=“C:\Program Files\SAP BusinessObjects\PC_NW\Logging\Trace”>. |
|
MaxTraceSize |
10 |
The maximum size of single trace file. The unit is MB. |
|
TraceFileCount |
10 |
Trace files are named BPCtrace.x.logwhere x is a number between 0 and one less than the TraceFileCount. The first trace file to be written is BPCtrace.0.log. When this file reaches the MaxTraceSize, the next file, BPCtrace.1.log, is started. This continues until there are TraceFileCount trace files, whereupon the system overwrites BPCtrace.0.log. |
|
TraceUser |
Empty |
The default means that the system writes trace records for all users. You can also create trace records for a specified user. |
Log Settings
The following table explains the parameters of the Log Setting section of the log-configuration.xml file.
|
Parameter |
Default Value |
Meaning |
|---|---|---|
|
LogSeverity |
INFO |
You use the log severity to control the number of trace records that are produced. The following log severity levels are supported:
Choosing a severity level means that trace records with the chosen severity, together with all more. severe log records, are written to the log file. For example, choosing INFO means that all information, warning, and error log records are written to the file. DONOTHING is a special severity level. If you set it as value, no log records are written to file. This is effectively switching off Logging. If you set another value for TraceSeverity, for example, ERR, it is treated as DONOTHING. |
|
LogDestination |
Empty |
The location where you want to store the log files. For example, <TraceDestination value=“C:\Program Files\SAP BusinessObjects\PC_NW\Logging\Log”>. |
|
MaxLogSize |
10 |
The maximum size of single log file. The unit is MB. |
|
LogFileCount |
10 |
Log files are named BPClog.x.logwhere x is a number between 0 and one less than the LogFileCount. The first log file to be written is BPClog.0.log. When this file reaches the MaxLogSize, the next file, BPClog.1.log, is started. This continues until there are LogFileCount log files, whereupon the system overwrites BPClog.0.log. |
Application Set Settings
The AppSet parameter of the Application Set Setting section of the log-configuration.xml file is no longer used.