Category.forcedLog() is a protected method. You should extend the Category 
class and override the method.

Nicolas

On Tuesday 17 July 2001 09:37, you wrote:
> Thanx Ceki. But it gives me compilation error like 'no method matching
> forcedLog(String,Priority,Object,Throwble) found in class category" !! More
> over could u please tell where this fn. going to print log messages.
>  //
> Trowable t;
> Logcon con=new Logcon();
>
>
> Category c = Category.getInstance("Logcon.class");
> con.msg="Test message";
> String fqcn = "Logcon.class";
> c.forcedLog(fqcn,Priority.INFO,con.msg,con.t);
> //
> Thanx,
> mathew.
>
> -----Original Message-----
> From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 4:24 PM
> To: LOG4J Users Mailing List; '[EMAIL PROTECTED]'
> Subject: Re: capture log4j output
>
>
>
> 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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Ceki Gülcü - http://qos.ch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to