You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Luis Ramos <xr...@hotmail.com> on 2006/01/17 02:52:02 UTC

about stdout.

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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: about stdout.

Posted by James Stauffer <st...@gmail.com>.
If you want System.out.println() output to go to a log4j log file then
you will need to use something that replaces the normal system out
PrintStream.  There is such a file in the distribution or in the
documentation online.

On 1/16/06, Luis Ramos <xr...@hotmail.com> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: about stdout.

Posted by Ole Chr Langfjæran <ol...@advicom.no>.
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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org