Capture log4J output with grep

Posted by Fork on Stack Overflow See other posts from Stack Overflow or by Fork
Published on 2010-06-12T11:50:28Z Indexed on 2010/06/12 11:52 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

Hi,

I know that log4j by default outputs to stderror.

I have been capturing the out put of my application with the following command:

application_to_run 2> log ; cat log | grep FATAL

Is there a way to capture the output without the auxiliary file?

© Stack Overflow or respective owner

Related posts about bash

Related posts about scripting