I have deployed my code into my local tomcat.. there log4j2 logs are appended to the file I have mentioned in the Rollingfileappender. But when I deploy this code in tomcat in unix server applications logs are added into catalina.out. The file gets created but app logs are not added there.. Can't get the root cause. Please help.
Like (1)
Reply
Replies (1)
by Adithyan P
Hi
The most common mistakes are
- Root logger configured with wrong logger name. Note that the names are case-sensitive
- Lack of user permissions
Catalina.out is the default log for System.out and System.err streams. May be as a failover, the logs are printed in catalina.out file.
If you could share your log4j configurations, we can help you find and resolve the issue
Like (0)
Reply