cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.1 Logging

mayur_patel6
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member537867
Active Contributor
0 Kudos

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.