tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Understanding how to controlling what data is written to log4j appenders
Date Fri, 11 Mar 2016 00:42:33 GMT
2016-03-11 2:49 GMT+03:00 Joleen Barker <>:
> I wanted to let you know that I really tried at this and feel the changes I
> made should be working and it is a matter of the developer hard coding the
> log messages to go to the stdout/stderr and became lazy as one of the other
> that commented had stated. I opened a ticket with the vendor but I have no
> idea how long it will take. So I went the route of writing a small perl
> script to copy the catalina.out file to a file with the same name and the
> date and time appended on the file name and then next I open the existing
> catalina.out file to clear the contents and then close it again to start
> the next day with a clean log file. It isn't the way I wanted to go but I
> ran out of time. If the vendor decides to work with me, it would be great
> but I have a feeling they will not go back and change things.

On the logging page of the FAQ:

By the way,
1) It is possible to run with a debugger and put a breakpoint into  I doubt that the PrintStream
class is used much anywhere except to implement System.out/System.err.

2) It is possible to search the class files for the message text. The
classes store it in UTF-8, and jar files are just zip archives.

> So are you suggesting to remove the ConsoleAppender from the
> that the vendor has in the WEB-INF/classes directory?


The same for Tomcat own log configuration,

(Just mentioning for completeness. IIRC you have already reconfigured
Tomcat own logging.)

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message