Skip to content

Way to change loglevel locally / globally? #748

@windymelt

Description

@windymelt

It may be useful if we can change loglevel in scope like: logger.withLoglevel("DEBUG"). Defining it as IO[Resource[IO, Unit]] enables us to change and revert loglevel simply.

Currently I'm calling System.setProperty("org.slf4j.simpleLogger.log.FooClass","DEBUG").

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions