Liferay Tomcat Bundle Remove stdout log file in the Tomcat directory

Anish Kumar, módosítva 2 év-val korábban New Member Bejegyzések: 18 Csatlakozás dátuma: 2023.04.11. Legújabb bejegyzések

Hi All,

I am trying to remove the stdout log file created in the folder LiferayHome/tomcat-9.0.75/logs/liferayuat-stdout.2024-02-28 as this file is not rolling daily basis and all logs are writtent to one file. Also we already have the daily log files in the LiferayHome/logs folder. 

I am running Liferay bundle as a windows service, not from command prompt. So this file will get larger after deploying to production and we can't delete without stopping tomcat bundle.

I have tried configuring LiferayHome/tomcat-9.0.75/conf/logging.properties by removing handler java.util.logging.ConsoleHandler as mentioned in the below URL and tried setting java.util.logging.ConsoleHandler.level = OFF, But not worked for me.

https://liferay.dev/blogs/-/blogs/improve-your-liferay-and-tomcat-logging

Could somone please share how we can remove this stdout log file.

Does this stdout log file deleted automatically after 90 days? 

Thanks in advance

Anish Kumar, módosítva 2 év-val korábban New Member Bejegyzések: 18 Csatlakozás dátuma: 2023.04.11. Legújabb bejegyzések

I have set swallowOutput to true in the tomcat/conf/Catalina/localhost/ROOT.xml Context XML and now the default thread logs are not adding to the stdout file. 

Only logs from other threads are getting added to this file

 

thumbnail
Olaf Kock, módosítva 2 év-val korábban Liferay Legend Bejegyzések: 6441 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések

Make sure your own code is not using System.out.println or similar. Rather use proper logging.