From: Mike S. <m...@pe...> - 2004-10-26 05:51:55
|
On Mon, 18 Oct 2004, Tod Harter wrote: > There are at least 3 different documented ways to define a logging category > > 1) log4perl.categoryname = ... > 2) log4perl.category.categoryname = ... > 3) log4perl.logger.categoryname = ... "logger" and "category" are indeed synonyms and can be used interchangeably. But I'd be surprised if 1) worked. > and as well at least 2 ways of defining the root logger (maybe others > work as well....). > > 1) log4perl.rootLogger = .... > 2) log4perl.logger = ... Correct. And even log4perl.category will work. That's TMTOWTDI. > Method 1 of defining a category does not work, at least not on my system! > Method 2 does work > Method 3 I haven't tested Can you point out where 1) is endorsed in the docs? > And as for the root logger, method 1 works and method 2 may work but > doesn't seem to work in all cases, though I didn't explore that enough > to be sure > of exactly what was going on. If you find cases which don't work, I'd be very interested to hear about them. > Anyway, thanks for the help, now all I have to conquer is 'additivity' > (which it seems to me for most simple applications the default aught to > be the opposite, but whatever > thats just my personal preference). That's a topic which is discussed controversly in L4j land as well. It's just a default setting though, and it can be adjusted to your preferences easily. -- Mike Mike Schilli m...@pe... |