cancel
Showing results for 
Search instead for 
Did you mean: 

Logging v/s tracing

Former Member
0 Kudos

Hi all,

What is the difference between logging and tracing. Also how can i see the output of logging and tracing both.

Thanks,

Kulwant

Accepted Solutions (1)

Accepted Solutions (1)

former_member529475
Active Contributor
0 Kudos

HI kulwant

Logging and Tracing is used for Troubleshooting.

In Logging, you will get some high level informations/status where as in tracing, it wil help u to analyse further, step wise..

Tracing rewrites functions that help developers to recognize errors and solve problems. Logging information comprises the status of a technical component on an SAP J2EE server. The audit log of the Adapter Framework collects information for each message.

Logging:

a) Using configuration parameters LOGGING or LOGGING_SYNC for local integration engine.

Using configuration parameter LOGGING_PROPAGATION for globally (for all integration engines)

b) Activate logging for individual pipeline services

c) Set logging in the message header

d) Set logging in the trouble shooting settings

Tracing:

a) Using configuration parameters TRACING_LEVEL for local integration engine.

Using configuration parameter TRACING_LEVEL_PROPAGATION for globally (for all integration engines)

b) Set tracing in the message header

This will help u - fior more

http://help.sap.com/saphelp_nw2004s/helpdata/en/64/0b59010a65de44be4f26cb57b9580d/content.htm

e.g is SXMB_MONI -->Monitoring of xml messages

Cheers..

Vasu

<i>** Reward Points if found useful **</i>

Answers (2)

Answers (2)

Former Member
0 Kudos

Kulwant,

Check this SAP note for clear understanding on this:

Note 751915 - Differences between trace, log and audit log

---Satish

prateek
Active Contributor
0 Kudos

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.

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.

<i>from SAP Note 751915 </i>

<i>[Reward if helpful]</i>

Regards,

Prateek