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 "Mathew, Bindhu" <Bi...@ssa.gov> on 2001/07/16 21:34:15 UTC

capture log4j output

Hi there,

 I am very new to log4j and seeking some help from u experts.
 Instead of writing Appenders/configuration file/commanline arguments, I
need to log the messages to a file using some function say
writeLogFile(String message). Is it possible to capture the outputs of
info(),debug()...etc. and to pass to this fn? Is there any efficient ways?
please let me know.
Thanx,
bmathew.

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


Re: capture log4j output

Posted by Ceki Gülcü <cg...@qos.ch>.
Mathew,

Have you seen Category.forcedLog? Regards, Ceki

At 15:34 16.07.2001 -0400, Mathew, Bindhu wrote:
>Hi there,
>
> I am very new to log4j and seeking some help from u experts.
> Instead of writing Appenders/configuration file/commanline arguments, I
>need to log the messages to a file using some function say
>writeLogFile(String message). Is it possible to capture the outputs of
>info(),debug()...etc. and to pass to this fn? Is there any efficient ways?
>please let me know.
>Thanx,
>bmathew.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-user-help@jakarta.apache.org

--
Ceki Gülcü - http://qos.ch


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