on 11-24-2006 4:13 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.