logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitchell Ackermann" <mitchell.ackerm...@epsiia.com>
Subject Re: separate log files ??
Date Tue, 04 Sep 2001 16:11:09 GMT
I believe what he meant was something like this:
http://jakarta.apache.org/log4j/docs/FAQ.html#namingCategories
http://jakarta.apache.org/log4j/docs/FAQ.html#className

Mitchell Ackermann

----- Original Message ----- 
From: Eddie <post2menow@hotmail.com>
To: LOG4J Users Mailing List <log4j-user@jakarta.apache.org>
Sent: Tuesday, September 04, 2001 5:39 AM
Subject: Re: separate log files ??


Paul,

I noticed that I wasn't very specific.
What I don't understand is what you mean by
"use classname as category name and it doesn't matter what order things are
configured"
as you said in your mail ?

Eddie

> ----- Original Message -----
> From: "Paul Glezen" <pglezen@atdial.net>
> To: "LOG4J Users Mailing List" <log4j-user@jakarta.apache.org>
> Sent: Monday, September 03, 2001 9:24 PM
> Subject: Re: separate log files ??
>
> > Sounds like a judicious use of categories could solve this.  If the set
> > of classes that make up application A and B are disjoint, then it is
> > trivial: use classname as category name and it doesn't matter what order
> > things are configured.  Set log_file_A for the app_A categories and
> > log_file_B for the app_B categories.
> >
> > If you have utility classes used in both app_A and app_B, then you need
> > for the utility class to come up with a scheme (perhaps by using some
> > kind of context information) to uniquely name the category instance that
> > each utility class instance uses.
> >
> > If you're calling static methods of utility classes, then you may be out
> > of luck.
> >
> > - Paul



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


Mime
View raw message