From: Tod H. <th...@gi...> - 2004-10-26 12:57:15
|
Mike Schilli wrote: >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. > > OK, maybe #1 is just a special case for the root logger. >>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. > > I'll see if I can come up with a test case. log4perl.oneMessagePerAppender = 1 didn't seem to work, hmmm. It seems to me that config file parsing ignores a lot of errors. It would be really nice to be able to have either a logging configuration checker or a 'pedantic' mode that throws an error on anything non-kosher it sees in the config file. Overall its a pretty nice system, though if I'd have designed L4J I think I'd have stuck more to a philosophy of 'what not how' in terms of configuration (IE why not have the directives organized in such a way as to describe where log file entries would end up as opposed to how the handlers are stacked) but thats neither here nor there... Keep up the good work, its appreciated. |