[Pas-dev] logging
Status: Beta
Brought to you by:
mortis
From: Mental P. <Me...@Ne...> - 2003-11-13 15:51:42
|
I'm ripping out the entire logging framework and replacing it with log4perl. This is an incompatible change and WILL BREAK apps using pas. I'm also writing a 5th chapter to the developers guide with the hows/why's of what the new logging frame work is and why you'd want to use it. We have a couple choices. 1. (and what I'm assuming is the best path forward) We rip out log dispatch and start using log4perl. We declare a singleton for each package to be used for logging. (our $Log = Org::Bgw::Log::get_logger();) 2. We do the same thing as 1, but add a sub log method on the Base object that uses caller to instantiate and return a log object based on caller. the second choice means people dont have to go changing a ton of code to deal with the abrupt change in logging. If we opt for 2, I'll add that AFTER I refactor the 'core' code. -- Mental (Me...@Ne...) Old aunts used to come up to me at weddings, poking me in the ribs and cackling, telling me, "You're next." They stopped after I started doing the same thing to them at funerals. CARPE NOCTEM, QUAM MINIMUM CREDULA POSTERO. GPG public key: http://www.neverlight.com/pas/Mental.asc |