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 Reshat Sabiq <cr...@argushealth.com> on 2007/02/14 22:30:46 UTC
logger at method level
Do i understand correctly that the following will work just fine
log4j.logger.com.domain.paket.Klass.metod=DEBUG, CONSOLE, FILE2
as long as i construct the Logger w/
Logger.getLogger(Klass.class+".metod");
I might not actually use this, cause it sounds too convoluted, but it's a thing
i've been considering.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: logger at method level
Posted by James Stauffer <st...@gmail.com>.
Try Logger.getLogger(Klass.class.getName() +".metod"); Besides that
it should work just fine.
On 2/14/07, Reshat Sabiq <cr...@argushealth.com> wrote:
> Do i understand correctly that the following will work just fine
> log4j.logger.com.domain.paket.Klass.metod=DEBUG, CONSOLE, FILE2
> as long as i construct the Logger w/
> Logger.getLogger(Klass.class+".metod");
>
> I might not actually use this, cause it sounds too convoluted, but it's a thing
> i've been considering.
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
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