Skip to main content

Hexagon microservices toolkit

Klogging has a logging adapter for the Hexagon microservices toolkit.

Maven Central


Klogging supports Hexagon toolkit versions 3.4.3 to 3.4.7, which require JVM 17.

Later versions of Hexagon toolkit use JDK Platform Logging and do not require this adapter. To use Klogging with these versions, use the JDK Platform Logging implementation instead.

Specify dependency

Specify the adapter dependency in Gradle, for example:

dependencies {

// etc.

Or in Maven, for example:

<!-- etc. -->

Install the adapter

At the beginning of the main function, set the adapter to use, for example:

fun main() {
LoggingManager.adapter = KloggingManager()

Configure Klogging

Configure Klogging either using the configuration DSL or a configuration file in the application classpath. Here is a simple klogging.json example:

"sinks": {
"console": {
"renderWith": "RENDER_ANSI",
"sendTo": "STDOUT"
"logging": [
"levelRanges": [
"fromMinLevel": "INFO",
"toSinks": [