I'm trying to stay out of this debate, but I just can't let this go by: On Wed, 3 Apr 2002 [EMAIL PROTECTED] wrote: > I'm thinking as: > > class MyClass implements LogUser { > // default logger > private static Logger logger = Log.getLogger(MyClass.class); > > public void setLogger( Log log ) {
// should really fail-fast if a null logger is provided rather // than have logging statements fail at some unknown point in // the future. if(log == null) throw new NullPointerException("null log"); > logger=log; > } > > ... > if( logger.isDebugEnabled() ) logger.debug("Something" ); > } yeah, I know it was just pseudo-code. :) regards, michael -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>