WebDynpro Java (WDJ) offers the ability to write the logs of an application to a specific log. Instead of writing it to the same logs as the portal – ex.: default.trc – you can define your own file for every application, making it very easy for you, the administrator and the developer to analyze the application.
In your WDJ application, you define a log category. This category will receive all the logs of your application. This looks like this:
private static final com.sap.tc.logging.Category realLogger = com.sap.tc.logging.Category.getCategory (Category.APPLICATIONS, “/Portal/Myapp”);
This is done by the developer. The developer has to communicate this category to the NW AS Java Administrator so he can configure the application server. To do so, follow these steps: