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 Mario Udina <ma...@udina.com> on 2006/05/26 09:25:05 UTC

Attaching new appenders at runtime

Hello!

I have a server that I have created using the quickserver library.
I use log4j in this server to log some events.

What I would need is to add appenders while the loggers are already
instantiated.

Is that possible?

how to do this?

regards,
mario udina

-- 
Htio bih umrijeti ko moj djed tiho i u snu, a ne
vristeci u panici kao putnici u njegovom autobusu.

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


Re: Attaching new appenders at runtime

Posted by Mario Udina <ma...@udina.com>.
James Stauffer wrote:
> I believe that can be done by using code,  Take a look at the API.
> 

Yes indeed, it seems that I was doing something wrong. Since it was not 
working, today I rewrote the procedure and it works.

regards,
mario udina
-- 
Htio bih umrijeti ko moj djed tiho i u snu, a ne
vristeci u panici kao putnici u njegovom autobusu.

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


Re: Attaching new appenders at runtime

Posted by James Stauffer <st...@gmail.com>.
I believe that can be done by using code,  Take a look at the API.

On 5/26/06, Mario Udina <ma...@udina.com> wrote:
> Hello!
>
> I have a server that I have created using the quickserver library.
> I use log4j in this server to log some events.
>
> What I would need is to add appenders while the loggers are already
> instantiated.
>
> Is that possible?
>
> how to do this?
>
> regards,
> mario udina
>
> --
> Htio bih umrijeti ko moj djed tiho i u snu, a ne
> vristeci u panici kao putnici u njegovom autobusu.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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