on 09-27-2011 11:39 AM
Hi All,
I have the same problem as [here|].
I am using SAP EP 7.3.
I created location varible in my web-service
private static final Location logger = Location.getLocation(TestKmWSImplBean.class);
and tried to write some information into the logs using this code:
logger.debugT("some text");
I cannot find this location in NWA -> Log Configuration, Tracing Locations.
Do you have any ideas why it is not displayed there and how to find my logs in the default traces?
Thanks and Regards
Alex
Hi Alex,
Login to NWA and navigate to Troubleshooting -> Logs and Traces -> Log Configuration. In the dropdown 'Show', select "Tracing Locations" and search for "TestKmWSImplBean". Here the Severity is set to "Error" by default. Hence statements written with logger.debugT are not visible. Instead change the code to:
logger.errorT("some text");
Now go to Troubleshooting -> Logs and Traces -> Log Viewer and select the View as "Developer Traces". Now you will be able to view 'some text' in Log Viewer.
If you want logger.debugT statements to be visible in defaultTrace files, then you need to set the Severity of the location to "Debug" and change the following code as follows:
static
{
// @@begin id
String id = "$Id$";
// @@end
com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").*debugT*(id);
}
You can also refer to this help link for Log Configuration:
[http://help.sap.com/saphelp_nw73/helpdata/en/47/b1a7deac671599e10000000a42189c/content.htm]
Regards,
Pavithra
Edited by: Pavithra R. Upadhya on Sep 28, 2011 5:06 AM
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.