Skip to Content

Logging and tracing - NWA settings for custom location

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2011 at 02:06 PM

    Hi,

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

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2011 at 12:35 PM

    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-ceee8895f34b?quicklink=index&overridelayout=true

    I hope it will fix your problem;-)

    Regards

    Steffen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.