on 10-22-2010 4:32 PM
Hi developers,
I would like to use Tracing and Logging APIs in my EJBs.
EJB DCs should depend on tc/bl/logging/api for build time api access
What are the ear runtime dependencies required for logging library usage?
Thanks, regards
Vincenzo
Hi Vincenzo,
there is no need for a runtime-dependency. This stuff must be in the system-Classloader of the Appserver. (7.20 SP3)
If you want to use it in standalone clients, see sap.comtcloggingjavaimpl.jar in j2eeclient-dir on Appserver.
Regards
Rolf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Rolf.
One more question: I have added a static variable of class Location to my EJB like
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(myClass.class);
Now I can't find this location in NWA -> log configuration -> tracing locations.
On the other hand, in that view I can see all the web dynpro Tracing locations.
What am I missing?
Thanks, regards
Vincenzo
Hi Vincenzo,
the Location defined by com.sap.tc.logging.Location.getLocation in your code is shown in the Location columnt in Log Viewer, e.g. Default Trace (Java).
The Trace location in the log configuration has nothing to do with this Location - it is the file location of the file that you will not want to define per class. (Which strategy and granularity SAP uses for WD and how to find the correct file location in the Trace location - sorry, no idea.)
Regards
Rolf
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.