Skip to content

Bridges

artsiomkorzun edited this page Mar 4, 2021 · 2 revisions

Bridges

This page describes how to configure bridges for the existing logging frameworks.

SLF4J (Simple Logging Facade for Java)

Add to your project the following dependency to make SLF4J use gflog as the implementation:

 runtimeOnly 'com.epam.deltix:gflog-slf4j:3.0.0'

Make sure that no more SLF4J bridges on the classpath. Otherwise SL4J can choose a different bridge to use.

JCL (Apache Commons Logging)

Add to your project the following dependency to make JCL use gflog as the implementation:

 runtimeOnly 'com.epam.deltix:gflog-jcl:3.0.0'

Make sure that no more JUL bridges on the classpath. Otherwise JCL can choose a different bridge to use.

JUL (Java Util Logging)

Add to your project the following dependency:

implementation 'com.epam.deltix:gflog-jul:3.0.0'

Call the following method before JUL is initilized to make it use gflog as the implementation:

com.epam.deltix.gflog.jul.JulBridge.install()

Make sure that you call this method before JUL is initialized. Otherwise JUL can choose the default implementation or a different bridge to use.

Clone this wiki locally