LuciadLightspeed and LuciadFusion allow you to keep using your preferred logging framework.

By default, LuciadLightspeed and LuciadFusion use the widely used SLF4J and Logback frameworks to log application messages. If your application uses a different logging framework, you can re-configure LuciadLightspeed and LuciadFusion accordingly.

Configuring the logging framework

At initialization, LuciadLightspeed and LuciadFusion instantiate a global ILcdLoggerFactory that determines to which framework all logging output is sent.

LuciadLightspeed and LuciadFusion come with some implementations out of the box, such as the TLcdJULLoggerFactory, which delegates logging to Java’s java.util.logging functionality.

Most logging frameworks have a very similar API, so it’s usually quite straightforward to write an implementation of ILcdLoggerFactory for your preferred logging framework.

The logging entry point is TLcdLoggerFactory. This class retrieves the ILcdLoggerFactory implementation class from a configuration file in your class path called META-INF/services/com.luciad.util.logging.ILcdLoggerFactory. The class javadoc explains how to modify that file.