xLog is a log engine which uses the apache commons logging API for all logging purposes.

 

The purpose of this project is to provide a logging implementation which is easy to start using, but also configurable so it allows customizations. All logging is done via the apache commons Log interface, and logger objects are provided by a custom LogFactory implementation. You can switch between different log appenders by changing one .properties file, keeping your log calls as they are.

 

When logging methods are invoked log entries are saved in a queue, and the queue is processed by a PhaseListener after each request.

 

It is also possible to configure the framework to delegate the logging process to a background thread, the thread implementation is based on the Eclipse jobs framework. My implementation is based on the examples in this project: http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=Threads%20and%20Jobs

 

The source code for the logger implementation can be found on github, you will need the maven plugin in order to compile it:

https://github.com/OpenNTF/xLog

See downloads and documentation for more details about how to configure the project once it is checked out.