留言板

How to capture console logs

thumbnail
Cameron McBride,修改在12 年前。

How to capture console logs

Expert 帖子: 269 加入日期: 11-2-8 最近的帖子
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,修改在12 年前。

RE: How to capture console logs

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
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,修改在11 年前。

RE: How to capture console logs

New Member 帖子: 24 加入日期: 12-6-15 最近的帖子
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