cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find the location in Log Configuration, Tracing Locations.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you, Pavithra

But the problem was that the location "TestKmWSImplBean" wasn't displayed in Troubleshooting -> Logs and Traces -> Log Configuration->Tracing Locations. Several hours later the location appeared.

former_member202734
Participant
0 Kudos

Same problem in our 7.4 Portal.

--> not able to find my 'class' in Tracing Locations... even after several hours...

Any idea ?

(and we have a sandbox Portal in 7.3 where it works).

Vincent