cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Log file from WebDynpros

Former Member
0 Kudos

Hi Friends,

I am developing one webdynpro application where I need to generate Log file for the warnings and errors coming while execution.

Could you guys give me any links or documents to generate log files from webdynpros.

Thnaks in advance,

Sandeep Kumar B

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sandeep,

You can 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

Answers (1)

Answers (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Sandeep,

See this thread

Regards, Suresh KB