留言板
How to capture console logs
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!
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!
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.