Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

System log or Application Log?

Former Member
0 Likes
1,170

Hi Experts,

I have a scenario where I need to put a logging mechanism for my custom application. I am a bit confused whether to use System Logging or Application Logging for the same. I have previousluy used Appliation logs so I know the details of it.But I am not too sure about system logging. Is the use of system logs a better option than application logs? Is the use of system logs for a custom application a good practice?

For system logs, I am planning to use the function module 'RSLG_WRITE_SYSLOG_ENTRY'.

For application logs I am planning to use the BAL_LOG_* function modules.

Please let me know your opinion.

Thanks,

Samrat.

6 REPLIES 6
Read only

Former Member
0 Likes
1,002

Hi

Use APPL_LOG_READ_DB,APPL_LOG_DISPLAY for application logs.

Use SXMI_XMB_SYSLOG_READ for System log.

Regards

GAurav

Read only

0 Likes
1,002

Hi Gaurav,

Thanks for your reply, but I am more interested to know what are the advantages and disadvantagess of these two options.?

Which one is more suitable in our case?

Thanks,

Samrat.

Read only

Former Member
0 Likes
1,002

Hi,

Application Log is suitable in your scenario. As the name suggest, SAP has specifically designed the Logging mechanism for Application.

Thanks,

Regards,

Mohaiyuddin

Read only

Former Member
0 Likes
1,002

This message was moderated.

Read only

Sm1tje
Active Contributor
0 Likes
1,002

You should definitely go for the application log. Like already mentioned before, the application log is for logging data for applications, whilst, the system log should only be used for monitoring your system. With the system log one can locate errors in the system and correct them. Errors like failed updates, short dumps etc. System log is part of basis administration, while application logging is meant for Application Management / Service management.

Read only

0 Likes
1,002

And what's about E orr A-messages and application log?

normally a program aborts in this case resp. must abort beacause of a wrong configuration

What's the handling here? stop program and filling application log?

regards Andreas