1

I've been fighting this problem on & off as time allows since last year. I'm trying to get several tomcat 8 installations to use JULI to format & rotate their logs without success. I'm sure I'm just missing some switch somewhere to "turn it on."

Environment:

  • Ubuntu 14.04.5
  • Tomcat 8.0.14

On two of the servers, if I restart the service, tomcat actually creates the 3 specified log files, but then dutifully also continues to output to catalina.out. Any help would be appreciated. Configs linked below:

Please let me know if any other config issues are necessary to debug this issue. Thanks in advance.

Travis
  • 123
  • 8
  • The `catalina.out` file is the redirected stdout/stderr, you can't rotate this from logging config. – Federico Sierra Apr 20 '17 at 00:42
  • That's correct, but the logging config that I have is supposed to turn _off_ logging to catalina.out (swallowOutput=True, removed ConsoleHandler), and start logging to 2 separate files: catalina.%g.log & localhost.%g.log. See this [answer](http://stackoverflow.com/questions/19787279/where-to-configure-internal-tomcat7-stdout-stderr-log-files/26044829#26044829). – Travis Apr 20 '17 at 01:16
  • To disable logging to catalina.out completely you can redirect stdout and stderr to `/dev/null`. Eg `export CATALINA_OUT=/dev/null` – Federico Sierra Apr 20 '17 at 02:19
  • Yes, this is also true, but it doesn't answer my original question of why the logging system isn't behaving as it should. I don't want to _stop_ logging, I want the logging to behave as the config dictates it should be: logging into the 2 files (catalina.%g.log & localhost.%g.log). – Travis Apr 20 '17 at 11:58

0 Answers0