on 12-22-2006 3:56 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.