how to log in standard sap way in a jsp/servlet project
To log and trace in sap standard mechanism always confuse me a lot.
Is there any how-to document for j2ee project?
I know for wdj you can add log configuration by select 'create log configuration file' in context menu, but I can not find this for a j2ee project.
I would like to see the log in LogViewer of VA, put all logs together in sap management make sense in our project.
Thank you for your hints.
ile=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10, new TraceFormatter());
The above code specifies the path for your log file.
Then add this file as a log location and then log the traces. For this you can use the following code like:
Location location=Location.getLocation(className); location.addLog(file); location.setEffectiveSeverity(Severity.ALL); location.entering(methodName);