cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing Logging and Tracing in NW 04s.

Former Member
0 Kudos

Hi, I have been trying to use log-configuration.xml but it seems like i cannot get it to work at all.

I have a host of Dynpro Applications integrated through portal. And i want to log error details into a log file and also display it to the end-user in some form.

Please suggest me ideas for how can i get through it.

Releavant answers will certainly be rewarded. Please Help !!

Thnx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

kindly refer this Link u have full information for implementing Logging and tracing.

<A HREF="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/f2320a49c41aa2e10000000a422035/content.htm">Logging and Tracing</A>

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kunal,

were you able to resolve this issue ? im facing a similar situation. I started a new thread explaining my issue but i didn't get any response yet. if your problem is resolved, i would really appreciate a reply from your side.

Thanks,

Former Member
0 Kudos

Hi Raji,

Yea, i hv been able to implement this loggin & tracing. I would certainly like to know how can i help u. To make a note, I hv done this through NWA coz the so called Visual Admin is depricated. I hv attached a sample code to help u out.

Some of the neccessary imports:

import com.sap.tc.logging.Category;

import com.sap.tc.logging.Location;

import com.sap.tc.logging.Severity;

The actual method

public myMethod( )

{

.

.

.

.

.

.

String l_method = "myMethod( )";

try{

.

.

.

.

.

.

} catch (SQLException e) {

cat_db.logThrowableT(Severity.ERROR,logger,l_method,g_str_MSG,e);

}

u can use cat_db.infoT(...) for loggin

This cat_db is a category variable & logger is a location variable

After execution of this method, u can view result thro NWA.

Thanx

Edited by: kunal kotak on Dec 21, 2007 10:25 AM

Former Member
0 Kudos
Former Member
0 Kudos

Hi Kunal

You can check your Log in the server at the following path

<b>
<servername>\Serverlog\defaultTrace.* </b> there will be many XML files .

arrange icons by modified and check the recent one.

You need permission to access those files.you can get these details from your server administrator and ask him to share that folder for you

For more help <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fe/4f5542253fb330e10000000a155106/frameset.htm">Go Through This</a>

Regards

Chaitanya.A