Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
William Fleming
LOGS!
December 15, 2010 6:27 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

The Liferay logs are huge can you set them to go another location rather than the drive of the server that they are running on. My server just crashed due to the logs just exploding size!

Thanks
Olaf Kock
RE: LOGS!
December 15, 2010 7:16 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

There's a log4j config (for bundles) in tomcat-x.x.x/ROOT/WEB-INF/classes - you can change this one to adopt your preferred session. Just use the standard log4j configuration
J B
RE: LOGS!
December 15, 2010 7:37 AM
Answer

J B

Rank: Junior Member

Posts: 82

Join Date: August 12, 2009

Recent Posts

Maybe this has been asked, why are Liferay configs all over the place? Why not a unified XML config for things?

Would be nice to have almost an apache config file, setting mysql / logs / etc...
William Fleming
RE: LOGS!
December 16, 2010 6:28 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

Olaf Kock:
There's a log4j config (for bundles) in tomcat-x.x.x/ROOT/WEB-INF/classes - you can change this one to adopt your preferred session. Just use the standard log4j configuration


I would but its to big i want the logs as they are just i dont want them of the server hosting the sites i want to fire them to shared drive or something?
Olaf Kock
RE: LOGS!
December 16, 2010 2:35 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

well - isn't exactly this the point of a log4j config?

You could also configure tomcat to log to a different location (or link the tomcat logs directory to a different location if you're on a system that supports symlinks in the filesystem).
William Fleming
RE: LOGS!
December 17, 2010 3:14 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

Yes I understand that what they are used for i just want them logged to a seperate location where would i edit this in the tomcat.conf?
Olaf Kock
RE: LOGS!
December 17, 2010 4:19 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

tomcat/conf/logging.properties