on 09-24-2008 9:16 PM
Hello folks,
I have few questions regarding how to write logging in JAVA and ABAP AS. I think PI Logging API could be used for Java. I am not sure how logging works when you do mapping and Adapters. Any kind of direction would be appreciated.
Thanks,
Mayur
Hi Mayur,
By using MapTrace in the UD u can acheive this:
MappingTrace trace = container.getTrace();
trace.addInfo("trace Text");
Use AbstractTrace class from mapping API: http://help.sap.com/saphelp_nw70/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/frameset.htm
Here's the javadoc (go for com.sap.aii.mapping.api package): https://help.sap.com/javadocs/NW04S/SPS09/pi/index.html
And here's some sample code for instantiating the trace object: http://help.sap.com/saphelp_nw70/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
Also have a look at this:
XI/PI: Personalized logging & tracing
SLAW, a New Logging & Tracing Framework for XI.
Regards,
Vinod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.