logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Röder <rol...@swissrisk.com>
Subject AW: need help with category structure
Date Mon, 24 Sep 2001 17:46:59 GMT
the difference is, that the utility classes are called from different
applications...

-----Ursprüngliche Nachricht-----
Von: Jim Moore [mailto:jim.moore@veritas.com]
Gesendet: Freitag, 21. September 2001 18:15
An: LOG4J Users Mailing List
Betreff: RE: need help with category structure


You can get the Categories staticly (Category.getInstance(String)), so I
don't know why the fact that your utility classes have static methods makes
any difference.


-----Original Message-----
From: Roland Röder [mailto:roland@swissrisk.com]
Sent: Friday, September 21, 2001 12:12 PM
To: Log4j-User (E-Mail)
Subject: WG: need help with category structure


Hi,

I'm very sad about getting no response on my question. This is a serious
problem for me. I need only a hint, what to do. Can someone help me, please?


regard,
roland

-----Ursprüngliche Nachricht-----
Von: Roland Röder [mailto:roland@swissrisk.com]
Gesendet: Freitag, 14. September 2001 10:56
An: Log4j-User (E-Mail)
Betreff: need help with category structure


Hi,

I need a suggestion "how to structure categories".
My application consists of different classes in different packages like

Utility classes:
swissrisk.databaseLayer.VolatilityPeer
swissrisk.common.IOUtilities

Application classes:
swissrisk.requestdispatcher.RequestDispatcherServlet
swissrisk.requestdispatcher.XMLReader
swissrisk.volatility.VolatilityCalc
swissrisk.beta.BetaCalc

The application classes consists of servlets and standalone modules and uses
the utility classes. Each of the application classes
(RequestDispatcherServlet, VolatilityCalc, BetaCalc) should have a separate
logfile (this can be easily achieved using the categories
swissrisk.requestdispatcher.RequestDispatcherServlet,
swissrisk.volatility.VolatilityCalc, swissrisk.beta.BetaCalc and assigning
different logfiles in the configuration file). My goal is, that the utility
classes logs in the same logfile as the calling application. The utility
classes consists of many static methods and I don't want to pass the
category on every method call.
Is there an easy way for this approach? Can I use NDC to solve my problem?

Thanks for help
_______________________________________
Roland Röder 	tel:	+41 1 455 70 00
Swissrisk AG	fax:	+41 1 455 70 01
Räffelstrasse 32	mobile:	+49 174 3279432
8045 Zürich	mail:	roland@swissrisk.com
Switzerland	home:	www.swissrisk.com


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



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

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



---------------------------------------------------------------------
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