logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay <difficult...@yahoo.com>
Subject RE: Logging messages directed to stdout
Date Sun, 18 Jan 2009 11:45:41 GMT
I did refer to your two week old reply for a similar question.
I am able to write a java program (say program2) , which redirects stdout & stdin to log
But, I am not sure, how do I redirect the stdout of already running program (JVM)  to stdin
of my new program (JVM). Should I use pipes ?  
If will be helpful, if you could provide complete syntax of the command.
Please note that I donot have the option to modify the source of the already existing java
program (say program1). 
--- On Fri, 1/16/09, Michael Erskine <michael.erskine@ketech.com> wrote:

From: Michael Erskine <michael.erskine@ketech.com>
Subject: RE: Logging messages directed to stdout
To: "Log4J Users List" <log4j-user@logging.apache.org>
Date: Friday, January 16, 2009, 11:49 AM

> From: Jay [mailto:difficult_id@yahoo.com]
> Subject: Logging messages directed to stdout

> 2) The new logging mechanism should not have any impact on the
> performance of the application or the system

Not possible: unless you get a faster machine :p

I seem to answer this question every week - it isn't hard to redirect
stdout and stderr and any programmer should able to do it. 

Michael Erskine.

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message