Commons logging and jLo


jLo can be used in conjunction with commons-logging. In order to declare the LogManager that should be used you need to create a file called commons-logging.properties and make sure that this file in your classpath. There is only one line that you need to put into the file:

org.apache.commons.logging.LogFactory=org.jzonic.jlo.CommonsLogManager

This way you tell CL to use jLo as the underlying logging framework.

The properties file is required by commons-logging and we are not aware of any other solution to configure CL. The bad thing is that you end up with two configuration files. The one described above for CL and of course the jlo_logging.xml.

jLo will always support commons-logging but there is one thing that we should explain. The next version will include a code generator that lets you customize the logging framework. This means that you can define the targets yourself and then build a new jLo version. This customized version then will not be compatible because you may use different targets that are not supported by CL. So this customized version is NOT compatible BUT the regular version of jLo and all upcoming versions will be.