You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Edelson, Justin" <Ju...@mtvi.com> on 2004/02/13 23:46:19 UTC

Request for getLog(Object) method

As part of implementing JCL, we need to be able to obtain Log objects
based on the referring object, basically using a custom Log and Factory
implementations to inspect an object to determine the appropriate name
to use for logging. I can clarify this further if necessary.

In order to do this, I'm proposing these changes:
* a new overloaded version of the static method getLog that accepts an
Object be added to LogFactory
* a new overloaded version of the instance method getInstance that
accepts an Object be added to LogFactory
* a new default implementation of getInstance(Object) be added to
LogFactoryImpl that uses the object's class name as the log name.

Attached is a diff file representing these changes. This is my first
time doing this, so please let me know (in a nice way) if I've done
something incorrect.

I did not post this directly to bugzilla under the theory that there may
need to be some discussion of this request.

Justin Edelson
Software Developer
MTVi

 <<object_method.diff>>