73
Views
4
Comments
Solved
What is the difference between Trace and Log in ODC Portal?

Hi,

My self Neha Singh. Actually I have one doubt What is the use of Trace and Logs In ODC Portal. Can Anyone explain through Real Time?

2022-07-11 07-49-33
Alka Asnani
Solution

Hi Neha Singh

Both Trace and Logs are valuable tools for application development, monitoring, and troubleshooting. 

Trace:

 Trace is a feature that allows you to capture specific events and data points during the execution of your application.

Real-time Example: Let's say you have an e-commerce application, and you want to trace the steps involved in placing an order. You can add trace statements at critical stages, such as selecting items, adding them to the cart, entering shipping details, and making payment. 

Logs- Logs capture runtime information, errors, warnings, and debug messages generated by your application. 

Real-time Example: Suppose you have a customer support application, and users are reporting that they encounter an error when submitting a support ticket. By examining the logs, you can identify the specific error message, stack trace, and any other relevant details related to the error. 


Hope this helps

Thanks

2023-05-09 04-50-29
Neha Singh

Thank You So Much Alka

2023-01-26 16-03-24
Ana Agostinho

Hello Neha Singh, 

Please check this documentation link:

Best regards, 

Ana Agostinho


2023-05-09 04-50-29
Neha Singh

Thanks Ana

2022-07-11 07-49-33
Alka Asnani
Solution

Hi Neha Singh

Both Trace and Logs are valuable tools for application development, monitoring, and troubleshooting. 

Trace:

 Trace is a feature that allows you to capture specific events and data points during the execution of your application.

Real-time Example: Let's say you have an e-commerce application, and you want to trace the steps involved in placing an order. You can add trace statements at critical stages, such as selecting items, adding them to the cart, entering shipping details, and making payment. 

Logs- Logs capture runtime information, errors, warnings, and debug messages generated by your application. 

Real-time Example: Suppose you have a customer support application, and users are reporting that they encounter an error when submitting a support ticket. By examining the logs, you can identify the specific error message, stack trace, and any other relevant details related to the error. 


Hope this helps

Thanks

2023-05-09 04-50-29
Neha Singh

Thank You So Much Alka

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.