GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - badminimum/Lumina: Kotlin Logging That Feels Good

This repository was archived by the owner on Jun 14, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
gradle/wrapper
gradle/wrapper
 
 
src/main
src/main
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE_NOTES.md
RELEASE_NOTES.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Lumina – Kotlin Logging That Feels Good

License: GPL-3.0


Caution

This project is currently unmaintained.
I expect to start working on it again but switching to it java for broader support.

What is Lumina?

Lumina is a coroutine-first logging library for Kotlin.
It aims to be simple by default, but flexible enough when you need to configure it for more serious projects.

You get clean console output with ANSI colors, structured log files, and a DSL for building messages that don’t just end up as unreadable strings.


What’s New in v4

  • Cleaner design: logging, configuration, and strategies are properly separated.
  • DSL-based configuration (createLogger { ... }).
  • Configurable log rotation with safe defaults.
  • Structured message DSL (logger.info { +"line"; keyValue { ... } }).
  • Better shutdown handling (waitForCoroutinesToFinish).
  • Extensible strategies: build your own LoggingStrategy.

Installation

Available on Maven Central

Gradle (Kotlin DSL)

implementation("dev.mtctx.lumina:lumina:4.1.1")

Maven

<dependency>
    <groupId>dev.mtctx.lumina</groupId>
    <artifactId>lumina</artifactId>
    <version>4.1.1</version>
</dependency>

Quick Start

import mtctx.lumina.v4.*

fun main() {
    val logger = createLogger {
        name = "MyApp"

        log {
            rotation {
                enabled = true
                duration = 7.days
                interval = 1.days
            }
        }
    }

    runBlocking {
        logger.info { +"Lumina is ready" }
        logger.error { +"Something went wrong" }
    }

    logger.waitForCoroutinesToFinish()
}

Log Levels

Lumina ships with common levels:

  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL

Each has both asynchronous (logger.info { ... }) and synchronous (logger.infoSync { ... }) variants. Use sync logging only when you must flush logs immediately (for example, right before shutdown).


Structured Messages

Instead of plain strings, you can build structured logs:

logger.info {
    +"Application started"
    keyValue {
        define("Config", "dbUrl", "jdbc://localhost:5432")
    }
    +"Environment: production"
}

Custom Strategies

If the default levels aren’t enough, you can create your own strategy:

val custom = LoggingStrategyBuilder(
    strategyName = "CUSTOM",
    ansiColor = ANSI.PURPLE,
    config = myConfig,
    fileSinks = mutableMapOf()
)

Migration from v3

  • Logger → Lumina
  • LoggerConfig → LuminaConfig (with a new DSL)
  • LogMessageDSL → MessageDSL
  • waitForCoroutinesFinish → waitForCoroutinesToFinish

v3 APIs are still present but deprecated, with migration hints in the code.


Documentation

API reference: https://lumina.apidoc.mtctx.dev


License

Lumina is free software under the GNU GPL v3. Use it, modify it, and share it — just keep it free.

About

Kotlin Logging That Feels Good

lumina.apidoc.mtctx.dev/

Topics

kotlinkotlin-loggerloggerluminalumina-loggermodular

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.