on 04-02-2008 8:19 AM
Hi expert,
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.
William
Hi,
f
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any idea?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.