I am trying to rotate my tomcat STDOUT_timestamp & STDErr_timestamp logs.
The problem is with my app. (9 apps) which actually write to stdout (using consoleappender), this makes my stdout file
very large. so, i decided to rotate that stdout log file.
So, please does any one know if it is possible....can we use piped log just as apache server does?
please any solutions and suggestions are highly valuable....because i am kinda stuck here....
I recommend that you don't use the ConsoleAppender for individual webapps, except to log severe errors. The ability to rotate stdout/stderr varies depending on the OS. And although I believe there is a facility that you can pipe the stdout/stderr streams through that can be manipulated to do things like rotation, there are good reasons for not doing that.
You'll generally do better to have each application log its non-error messages to a separate logfile. That makes reading the logs easier, since you don't have to pick out the messages for whichever app you're investigating and you don't risk accidentally thinking that a message from a completely unrelated app is coming from the app you want to look at.
Also, there is an appender specifically designed to rotate logfiles, so you can very easily set up logfile rotation. You can't do that with stdout/stderr, since they are streams, not files.
Customer surveys are for companies who didn't pay proper attention to begin with.