[Pas-dev] migration to Log::Dispatch
Status: Beta
Brought to you by:
mortis
From: Kyle R . B. <mo...@vo...> - 2002-05-20 02:34:21
|
Should be completed. I gutted the old logging code out of the Base object hierarchy and replaced all the calls to log(), msg() log_error() and log_warning() with a log() method on Base that returns a Log::Dispatch::Config object. An example config file is in conf/log.conf. It's extremely flexible. Though now that I've used it, I don't think it's nearly as flexible as the real Log4j -- I don't know how to change settings for particular packages like you can with Log4j. The unit tests and the example pages all seem to work. I need your opinions: should we migrate the namespace to just 'Pas'? It kind of grates on me that I have to keep typing 'Org::Bgw::' all over the place. Not that big a deal, and if you all say it's not worth the hastle, we'll stick with the old prefix. Personaly I'd like to change it. Should we try migrating to Graham Barr's Error module next? Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |