Fórum

How to capture console logs

thumbnail
Cameron McBride, modificado 12 Anos atrás.

How to capture console logs

Expert Postagens: 269 Data de Entrada: 08/02/11 Postagens Recentes
What is the easiest way to have the logs being output to the console also directed into a log file?

Scenario:
Click startup.bat
Logs print to a console
Check <liferay>\logs\ and the stacktrace and standard out logs are not saved in there
Check <liferay>\<tomcat>\logs and the same as above

Thanks!
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: How to capture console logs

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Liferay uses log4j. The default setting is to just output to CONSOLE. Add settings to output to FILE too. That's what we are doing in production server. We're also running cron process to transfer log files to backup device at night.
Tom Picklesimer, modificado 11 Anos atrás.

RE: How to capture console logs

New Member Postagens: 24 Data de Entrada: 15/06/12 Postagens Recentes
Cameron,

I don't know if you still need help with this, but after hours of searching this is the best way I've found:

http://tomcat.10.n6.nabble.com/Tomcat-6-Log-Tomcat-output-to-file-td2064133.html

Hope that helps,

Tom