Foros de discusión

LOGS!

thumbnail
William Fleming, modificado hace 13 años.

LOGS!

Regular Member Mensajes: 180 Fecha de incorporación: 15/09/10 Mensajes recientes
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
thumbnail
Olaf Kock, modificado hace 13 años.

RE: LOGS!

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
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
thumbnail
Jakub B, modificado hace 13 años.

RE: LOGS!

Junior Member Mensajes: 82 Fecha de incorporación: 12/08/09 Mensajes recientes
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...
thumbnail
William Fleming, modificado hace 13 años.

RE: LOGS!

Regular Member Mensajes: 180 Fecha de incorporación: 15/09/10 Mensajes recientes
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?
thumbnail
Olaf Kock, modificado hace 13 años.

RE: LOGS!

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
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).
thumbnail
William Fleming, modificado hace 13 años.

RE: LOGS!

Regular Member Mensajes: 180 Fecha de incorporación: 15/09/10 Mensajes recientes
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?
thumbnail
Olaf Kock, modificado hace 13 años.

RE: LOGS! (Respuesta)

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
tomcat/conf/logging.properties