Skip to content

Easier configuration of KotlinLoggingConfiguration.logStartupMessage #598

Description

@josephlbarnett

Per #587, setting KotlinLoggingConfiguration.logStartupMessage allows for not printing out the startup message, as long as it's called prior to any KotlinLogging initialization. Managing that initialization is a little awkward, as at least in my case I've got a bunch of top level private val log...s that get initialized before any call to main().

I've been able to get it to work with a strategically placed run{} block like josephlbarnett/leakycauldron@0622c91 to take care of my main(), but the message shows up still in tests / other entry points, could there be an easier way to get this set throughout a given project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions