cancel
Showing results for 
Search instead for 
Did you mean: 

Logging and tracing - NWA settings for custom location

former_member190457
Contributor
0 Kudos

Hi developers,

As you may know, standard SAP components can have their trace level increased or decreased from NWA -> log configuration.

Now, I would like to enable my applications to the same feature. I actually only use getLocation (infoT, debugT, etc....)

How can this be done?

Thanks, regards

Vincenzo

Accepted Solutions (0)

Answers (2)

Answers (2)

steffen_spahr2
Participant
0 Kudos

Hi,

in my standard Java Web-Applikation I am using log4j.

If they run under the SAP-NetWeaver I used the technic of a "SAP Logging Bridge for Log4j".

This bridge transfers all the log4j-messages into SAP-Logger-messages.

So you can use the normal SAP-Logging-Tools and mechanism for reading and configuration of logging-informations.

Here is the link to the documentation "Integrating Third-Party Java Logging Frameworks into SAPu2019s Logging Framework":

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20ecb0f4-ccb0-2a10-46aa-ceee8895f...

I hope it will fix your problem;-)

Regards

Steffen

Former Member
0 Kudos

Hi,

You can try to use log4j for loggin in your applications.

http://netweaverturk.com/2010/04/16/logging-using-log4j-in-java-applications/