cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LOG FILES

Former Member
0 Likes
1,586

Hi there,

I wanna to know where can i find the log file which executes the codes that we have uploaded into the EP as PAR file.

I am now doing portal application and currently i am doing some debugging myself to my database connection codes to test out whether it works so i need a log file in the server to see where the codes have gone wrong.

Thanks Loads

Quatre

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi

Refer to this thread

Also the Logging framework

http://help.sap.com/saphelp_nw04/helpdata/en/3a/63e540aa827e7fe10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/fa/44d94016828431e10000000a1550b0/frameset.htm

See Check for the trace file they have all your application logs .I dont think so for so much of thing we will have to go into so much complexties.Check the latest trace file.

Thanx

Pankaj

Answers (8)

Answers (8)

Former Member
0 Likes

Hi,

you can check you log files in by following this steps

login to the portal with super admin

say

http://<host name>:port/irj/portal

now after logging in remove

irj/portal from the url and type

nwa

now it will open one new screen here you double click on

monitoring

and it will open new screen here you press on

logs and traces

and it will navigate you into another window ther in drop down list select

default traces.

***********please reward point if the information is helpful to you**************

Former Member
0 Likes

Hi there,

Thanks for all ur help, i have found the log files

Thanks Loads,

Quatre

vijayakhanna_raman
Active Contributor
0 Likes

Hi,

Rewarding points is the way of saying Thanks in SDN. Kindly reward points to people who have spent time in answering you.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement&

Check step4

Regards,

Vijai

Former Member
0 Likes

Hello sir ,

try checking over here

:\usr\sap\<SID>\JC01\j2ee\cluster\server0\log

or if still does nt work try to write the log inside a file which can be set inside the code wriiten by you and call the standard logging api of SAP.

Thanx

Pankaj

Former Member
0 Likes

hi there,

how do i code out the log file ? I am new to SAP NWDS and also J2EE. Do you have sample codes for coding out the log file ??

Thanks Loads

Quatre

Former Member
0 Likes

Hi Quatre

Check in the apps log file you will get that , i though you wanted to know the standard SAP provided log traces.

Thanx

Pankaj

Former Member
0 Likes

hi there,

but i cant find any log file in the app side...

Thanks loads

Quatre

Former Member
0 Likes

Hi,

Refer this link

Hope it helps

Thanks and Regards

Venkatesh

Former Member
0 Likes

Hi there,

i have found the log files but i do not know where is my log file or not. Cos i added

System.out.println("1");

in my codes. And i want to test whether the codes stop at which line but the error message of the codes is

Error in resource clean up for a disconnected client java.lang.NullPointerException

Thanks Loads

Quatre

Former Member
0 Likes

Hi Quatre ,

SAP has its own component for loggig ,messaging,notification and all.You can find the Log files as

J2ee :- The physical location of the log file are:

<Your_server_drive>:usrsap<SID>(3 Characters)<SYS>(4 character)j2eeclusterserver0log

Portal :-<Drive>usrsap<SAP_System ID>JC<J2EE Engine Instance>j2eeclusterserver<n>appssap.comirjservlet_jspirj ootWEB-INFportallogs

Or

In the Portal, go to Java Development > Portal LogViewer

you need to have the Java Developer role to be able to view this

Assign these roles for that

SAP_JAVA_NWADMIN_CENTRAL

SAP_JAVA_NWADMIN_CENTRAL_READONLY

SAP_JAVA_NWADMIN_LOCAL

SAP_JAVA_NWADMIN_LOCAL_READONLY

SAP_JAVA_NWMOBILE_ADMIN_READONLY

SAP_JAVA_NWMOBILE_ADMIN_SUPER

SAP_JAVA_SUPPORT

Refer to this for more details

IF EP 7

you can even loggin to http://<hostname>:port/nwa

A new utility provide by SAP where you can monitor the server stats and loads of things .Infact the Logs can also be seen.

System Managemnt>Configuration>Log configuration,

or

System Managemnt>Administration>Log and trace.

thanx

Pankaj

vijayakhanna_raman
Active Contributor
0 Likes

Hi,

By default, the path will be <Drive:>\usr\sap\J2E\JC00\j2ee\cluster\server0\log

Check for the defaultTrace updated recently.

U can also view this file from visual admin.

Regards,

Vijai

Former Member
0 Likes

Hi

Log files will be stored in

<SAP WebAS install dir > /

JC<Instance no> / j2ee/cluster/server0/log/defaultTrace.trc

(usr/sap/PRT/JC10/j2ee/cluster/server0/log/defaultTrace.trc)

if you use System.err.println(" sdfsdf"); It will be recorded in the log file file

otherwise you can user logger also . SAP has logging.jar to store logs

Regards

Ganesan S

PS : Award points if it is useful

Former Member
0 Likes

hi there,

how do i use the user logger? Sorry new to NWDS/EP

Thanks Loads

Quatre