I'm trying to implement a non-standard logger to be used by all beans created by the BeanFactory (don't ask why).
I first overload the commons logging factory via a vm runtime flag, like
-Dorg.apache.commons.logging.LogFactory= myLoggerFactory
but I also would like to inject my own initialization method into the BeanFactory itself to handle myLoggerFactory configuration, something like what the BeanFactory does for normal beans via init-method.
Is there any way to do this?
There are other options of course (eg. myLogger can read properties files with a specific name in the classpath), but I would prefer not to impose the burden of additional config files on clients of this software.
thx, jd


Reply With Quote
