From: Mike S. <msc...@ao...> - 2003-04-22 00:22:25
|
jc...@di... wrote: > But (you knew this was coming), if youre lazy like me, you > dont want the drudgery of coming up with lots of cate=AD > gories, and making sure theyre consistent. You note that > your class hierarchy could serve as a logging category. > NOW IT CAN.=20 Thanks for your post -- sorry it took so long to respond. Couple of point= s: * Seems like parts of what your implementation provides are already=20 available in Log::Log4perl, namely the "stealth loggers" feature. I'm=20 almost sure you've read these two docs, just in case: http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4p= erl/FAQ.html#what's_the_easiest_way_to_use_log4perl http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4p= erl.html#stealth_loggers It autocategorizes all loggers based on the class a particular logger is=20 in, but at compile time and not at runtime. * What your implementation provides on top of that, is the=20 categorization based on function names and line numbers. I think the=20 first one is a useful feature. The 2nd one I find somewhat doubtful,=20 because line numbers change quickly as a program evolves and it's=20 probably better to control messages with "message filters" if you need=20 to be able to intervene at such a low level. * I also find the "coverage" feature very useful, we should probably=20 have that in Log::Log4perl. > These are simple import-wrappers on existing Log4perl initialization > techniques. Since this is my 1st project to use Log::Log4perl, I dont > have the experience to know why they are not already exposed in > Log::Log4perl::import(). Perhaps reasons for not doing so will become > apparent as a result of this experimental feature. Not sure what you're referring to here. The stealth logger docs mention=20 ways to simplify the init (like easy_init({file =3D> ..}). Let me know=20 what you mean exactly if I missed anything. All in all, in looks interesting and I'd certainly be interested in a=20 complete distro to install and play with -- are you planning on=20 providing that? --=20 -- Mike Mike Schilli log...@pe... |