List Info

Thread: Re: How to set a FileAppender to STDOUT?




Re: How to set a FileAppender to STDOUT?
country flaguser name
Germany
2008-06-12 02:25:08

In Java, stdout is normally accessed using a console appender. Why are you using this construct in the first place?

Mit freundlichen Grüßen / Regards
Johannes Frank



"Peter Steele&quot; <psteelemaxiscale.com>

11.06.2008 20:34
Please respond to
";Log4CXX User" <log4cxx-userlogging.apache.org>;

To
"Log4CXX User" <log4cxx-userlogging.apache.org>;
cc
Subject
How to set a FileAppender to STDOUT?





What do I need to specify in the File parameter to mean STDOUT? I have
this:

 <appender name=";FILE" class=&quot;org.apache.log4j.FileAppender&quot;>
   <param name=";File"   value=&quot;System.out"/>;
 ...

which works in log4j but this just creates a file called System.out in
log4cxx. What's the magic formula?



RE: How to set a FileAppender to STDOUT?
country flaguser name
United States
2008-06-12 08:57:21

>In Java, stdout is normally accessed using a console appender. Why are you using this construct in the first place?

In the end it looks that we’re not going to need to do this after all so it is a moot point̷0;

Peter

 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )