Hi,
I would like to use commons.logging with Log4j has underlying logging
system. I know that commos.logging will use Log4j if it found in the
class path, but I would like to create my own LogFactory and use:
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
private static Log logger = LogFactory.getLog(Test.class);
I know also that by setting system property
-Dorg.apache.commons.logging.Log=... we can define the Log class used by
commons.logging.LogFactory to instanciate the Logger.
Then based on the sample of MyLoggerFactory and MyLogger, I create my
own factory and logger. I implement the commons.logging.Log in the
MyLogger, but when I used it I have a nullpointer on the repository.
Do you have any idea or examples on which I can relie?
Thx
Dominique