From: Polar H. <pol...@ad...> - 2003-05-17 01:05:13
|
On Thu, 15 May 2003, Richard Clark wrote: > > This Avalon Logging Framework suffers from not being able, as you say, to > > relinquish a ChildLogger. I think they are under the impression that the > > Loggers are static, I think something to do with the Java Logging > > something or other. Steve McConnell tried to explain this to me, as it > > pertains to "Logging Classes", but I don't think I grasped the concept. > > Anybody else care to comment? > > > > Basically most logging tools are intended for use on a per class basis where by > a private static final field holds a reference to the logger for each class: > > public class Foo { > private static final Logger logger = Logger.getLogger(Foo.class); > } > > Thus the number of loggers is relatively low and constant. Yeah, but in application servers, don't classes get garbage collected as well? Then there is no recourse on getting rid of their loggers. -Polar |