Hi,
Warren Crossing wrote:
> umm you could do something like append
>
> tomcat-start-command >> or &> logfile.name
>
> i think this gets stdout but stderr uses 2> or something.. i think its
> called redirecting output, i'm not sure.. but i think its really pathetitc
"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?
Sebastian
> warren.
> iwokeupthismorninginthelandofthefree!