Sample Logging Tutorial 
This sample tutorial gives you an example of how to put logging functionality in a real application. Performing the steps, you:
develop a HelloWorld application (Web service), and view the result: a “Hello,...” name message.
can view the application logs in a SAP tool.
In the example, you can view them with Log Viewer.
Create an EJB project for the HelloWorld application.
More information:
Expose the EJB.
More information: Exposing the EJB as a Web Service
Implement logging functionality.
More information: Implementing Logs in the HelloWorld Application
Deploy the logging-enabled application.
More information: Deploying the HelloWorld Application
Test the application.
More information: Testing the HelloWorld Application
View the logs.
More information: Viewing Logs of the HelloWorld Application
After performing the steps above, you have successfully created and deployed a sample application. The logs are available in the Log Viewer tool.
First step: Creating an EJB Project for the HelloWorld Application