cancel
Showing results for 
Search instead for 
Did you mean: 

Logging in Webdynpro application

Former Member
0 Kudos

Hi,

I have a webdynpro application. I wanted to enable SAP logging in the application. What all coding/configuration needs to be done to enable this? Where can we store the log files

regards,

Sujesh

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi sujesh,

See this thread:

Regards, Suresh KB

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sujesh,

go through the blog /people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application

or

1.Import the following classes

com.sap.tc.logging.Category;

com.sap.tc.logging.FileLog;

com.sap.tc.logging.Severity;

2. //>>create a location for the package. With this all classes under the mentioned package “com.sap.tc.wd.test” will be recorded in the log file

com.sap.tc.logging.Location logLocation = com.sap.tc.logging.Location.getLocation("com.sap.tc.wd.test");

3.the log file is under the path "C:
<<DIR>>
LogFile.log" and this log file is assigned to the location defined above

logLocation.addLog(new FileLog("C:
<<DIR>>
LogFile.log"));

4. set severity

logLocation.setEffectiveSeverity(Severity.INFO);

5.//>> the logger statements will be recorded in the log file

logger.infoT(Category.APPLICATION, "::::Entered MAIN Component::::MainView::::wdDoInit() method::::");

Regards, Anilkumar

Former Member
0 Kudos

Thanks for the reply. Should i need to do some configuration at WAS j2ee engine level ?

I know that some config xml files etc needs to be configured. How do we go about that?

regards,

Sujesh

Former Member
0 Kudos

Hi Sujesh,

Please go through FurtherAdministration section the above blog which explain about the visualAdmin settings.

Regards, Anilkumar