From: brett l. <wak...@gm...> - 2007-01-12 20:21:36
|
On 1/12/07, Erik Vos <eri...@hc...> wrote: > > Loggers (in the log4j sense) do not relate to different log files, > but to the granularity with which log levels can be set to > different values for different parts of the code. > > For instance, if we would define a logger for each package, > we could set the log level to DEBUG for the ui package whilst leaving > the level at INFO for the game package, if we are debugging > a particular UI problem. > > In other projects I have often defined a separate logger for > each class (or class hierarchy). > But in reality I have never used that ultimate flexibity to set > different log levels; in fact I've only changed the top level, > which applies to all loggers. > > So I think we can best set loggers at the package level. > I have already experimented with that and it works fine. > > Later I'll check in some code using that. > > Erik. > Ah ha... That makes sense. I agree, i'm not sure we need much more granularity. Package-level loggers sounds appropriate to me. ---Brett. |