Skip,

Agreed. I usually redirect console.log to dev null (discard).

Log4J in OFBiz does capture output in rotated logs, so the console.log is just extra. Moreover, debug messages shouldn't be done with System.out.println.

Jonathon

[EMAIL PROTECTED] wrote:
Vince

It is my view that a production server of any sort should never redirect stdout 
and stderr to a log file because you have no control over it.  If you want 
stdout and stderr, it's fairly simple in java to catch it and write it to a 
rotating log file.  In Ofbiz's case, not everything that goes to stdout and 
stderr is written to ofbiz.log, but everything of importance is (in my limited 
experience).  console.log is only useful in my view during developement.

Skip

-----Original Message-----
From: Vince M. Clark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 04, 2007 12:58 PM
To: user
Subject: managing the size of console.log


There are two startup options in startofbiz.sh # start ofbiz $JAVA $VMARGS -jar ofbiz.jar $* >>$OFBIZ_LOG 2>>$OFBIZ_LOG& #exec "$JAVA" $VMARGS -jar ofbiz.jar "$@" We are using the first option, which logs everything to console.log. This appears to be redundant with ofbiz.log. console.log is not rotated, so it gets very large. Should we use the first option and send everything to /dev/null? Vince Clark Global Era The Freedom of Open Source [EMAIL PROTECTED] (303) 493-6723



Reply via email to