cancel
Showing results for 
Search instead for 
Did you mean: 

what's the difference between trace and log in XI?

Former Member
0 Kudos

Hi all,

On both J2EE and ABAP, there are both tracing and logging functionalities. Can anyone explain me the difference between trace and logging?

Regards,

Hui

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

From SAP Notes

Log file:

A log file contains generally intelligible information for system administrators. The information is sorted by categories and is used for system monitoring. Problem sources or critical information about the status of the system are logged in this file. If error messages occur, you can determine the software component that has caused the error using the location. If the log message does not provide enough details to eliminate the problem, you can find more detailed information about the error in the trace file.

The log file is located in the file system under

"/usr/sap/[SID]/[instance]/j2ee/cluster/server[N]/log/applications.[n].log" for every N server node.

Access the file with the log viewer service of the J2EE visual administrator or with the standalone log viewer.

Trace file:

A trace file contains detailed information for developers. This information can be very cryptic and extensive. It is sorted by location, which means by software packages in the Java environment, for example, "com.sap.aii.af". The trace file is used to analyze runtime errors. By setting a specific trace level for specific locations, you can analyze the behavior of individual code segments on class and method level. The file should be analyzed by SAP developers or experienced administrators.

The trace file is located in the file system under

"/usr/sap/[SID]/[instance]/j2ee/cluster/server[N]/log/defaultTrace.[x].trc" for each N server node.

Access the file with the log viewer service of the J2EE visual administrator or with the standalone log viewer.

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

Thanks for the answer. It makes me clear now. Do you have the SAP notes number?

Regards,

Hui

prateek
Active Contributor

Glad that it helped

The note no is 751915

Regards,

Prateek

Answers (0)