Skip to Content
avatar image
Former Member

how to log in standard sap way in a jsp/servlet project

Hi expert,

To log and trace in sap standard mechanism always confuse me a lot.

Is there any how-to document for j2ee project?

I know for wdj you can add log configuration by select 'create log configuration file' in context menu, but I can not find this for a j2ee project.

I would like to see the log in LogViewer of VA, put all logs together in sap management make sense in our project.

Thank you for your hints.

William

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 07, 2008 at 12:07 PM

    Hi,

    f

    ile=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10,                                        new  TraceFormatter());

    The above code specifies the path for your log file.

    Then add this file as a log location and then log the traces. For this you can use the following code like:

    Location location=Location.getLocation(className);
    		location.addLog(file);
    		location.setEffectiveSeverity(Severity.ALL);
    		location.entering(methodName);

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2008 at 05:38 AM

    any idea?

    Add comment
    10|10000 characters needed characters exceeded