Don't know if this is exactly what your asking for, but a standard
rolling file could be setup like this:
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=${logspath}logfile.txt
log4j.appender.logfile.MaxFileSize=10MB
# Keep 5 backupfiles. Equals 50MB of space
log4j.appender.logfile.MaxBackupIndex=5
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
# Conversionpattern is so that logfactor5 can view the log.
log4j.appender.logfile.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%n\%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n%c[slf5s.CATEGORY]%n\%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n
Luis Ramos wrote:
hi.., I try to send the stdout to .txt file..., but I can't. how I
send the stdout to *.txt file???
thanks.
Xrampante Powered by linux
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]