On 12 Apr 2001 10:55:00 +0000, [EMAIL PROTECTED] wrote:
> "tomcat.sh &> file.log" will overwrite your logfile every time you call
> this command. It &> redirects stdout and stderr to a file.
> If you want to concat output from stderr as well as stdout to some log
> file do:
> "tomcat.sh >> file.log 2>&1"
> or if you want all error message in a separate file:
> "tomcat.sh >> file.normal.log 2>> file.error.log"
>
> > that your not using logforge which is also an apache code license java
> > thingy!
> what about log4j?
> http://jakarta.apache.org/log4j/docs/index.html
> This is what I want to use in my next project maybe.
> Do you have an URL to logforge?
This is something I tried (>> file 2>&1), but it didn't seem to spit
anything out (and I know stuff is getting spit out).
For now, I've switched over to use log4j, which works fine (and is
probably a lot better to use anyway), but I'm still curious. Plus, this
doesn't alleviate the issue of getting stdout/err in case something else
is printing to that.