‎2010 Feb 11 6:45 AM
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.
‎2010 Feb 11 6:56 AM
Hi
Use APPL_LOG_READ_DB,APPL_LOG_DISPLAY for application logs.
Use SXMI_XMB_SYSLOG_READ for System log.
Regards
GAurav
‎2010 Feb 11 7:01 AM
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.
‎2010 Feb 11 7:14 AM
Hi,
Application Log is suitable in your scenario. As the name suggest, SAP has specifically designed the Logging mechanism for Application.
Thanks,
Regards,
Mohaiyuddin
‎2010 Feb 11 7:17 AM
‎2010 Feb 11 7:55 AM
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.
‎2010 Feb 11 9:48 AM
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