On 20/07/2021 21:05, Ravi Kumar wrote:
Hi,

My web app is based on Tomcat 9.0.45 server. I have migrated from Tomcat 7 to Tomcat 9 and from log4j 1.x to log4j 2.x. I have updated the log4j2.properties as per log4j 2.x standard, still my tomcat.log file is not getting generated and all the application log are coming on console instead of redirecting this to tomcat.log file.

so 1.tomcat.log is not geting  generated
     2. all the contents are logging and showing on the application console instead of getting this logged inside the tomcat.log file.

Tomcat 9.0.45 + log4j 2.14.1 is used.

I am also attaching my log4j property file. Please find this attached here.

Kindly suggest me the solution.

https://logging.apache.org/log4j/2.x/log4j-jul/index.html

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to