Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kumar Bonagiri
Log file location in tomcat bundle LF6.1
June 25, 2012 7:14 AM
Answer

Kumar Bonagiri

Rank: Junior Member

Posts: 35

Join Date: April 22, 2012

Recent Posts

Hi All,

While Developing a portlet i have written some log debug statement's in .java file
but log file's in the location: D:\liferay-portal-6.1.0-ce-ga1\logs
and D:\liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\logs are not displaying my debugging statements.

Do i need to change the settings any where.....?


Any help in this Issue.

Regards,
kumar.
David H Nebinger
RE: Log file location in tomcat bundle LF6.1
June 25, 2012 8:06 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11101

Join Date: September 1, 2006

Recent Posts

Obviously it depends upon how you did your logging...

If you've just done a Log4j logging approach, then your log4j.properties file will determine where the logs go.

If you've used the Liferay API for logging (using classes from com.liferay.portal.kernel.log package), then you need to enable the logging level in the Logging portion of the server control panel and the messages will go into Liferay's log file.

If you've used some other logging method, then it will depend upon the configuration you've used (or the default if you haven't configured them at all).
Kumar Bonagiri
RE: Log file location in tomcat bundle LF6.1
June 26, 2012 5:00 AM
Answer

Kumar Bonagiri

Rank: Junior Member

Posts: 35

Join Date: April 22, 2012

Recent Posts

Hey David H Nebinger,

thanx for replay

Am Using Liferay API in developing my portlet
so i have added com.liferay.portal.kernel.log in my server administration --->Log level ----> Add Category ---->ALL(Level) ---> Save

after saving the package it has shown successful message and shown in the list
but after server restart the package is missing.

What was the problem can you plzz tell me...

Regards,
Kumar
David H Nebinger
RE: Log file location in tomcat bundle LF6.1
June 27, 2012 7:44 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11101

Join Date: September 1, 2006

Recent Posts

You add a definition for "com.example" (whatever your package path is), not com.liferay.portal.kernel.log...
Hitoshi Ozawa
RE: Log file location in tomcat bundle LF6.1
June 28, 2012 5:16 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

but after server restart the package is missing.


After the server restart, log settings are reset.