Skip to content

README does not describe how to set LOG_LEVEL when using with Swift-log #76

@peakman

Description

@peakman

I am using the HeliumStreamLogger with Swift-log Logging. I followed the README and used LoggingSystem.bootstrap(myStreamlogger.makeLogHandler).
The LogHandler created from the above has a hard-coded .info level and it took me a long time to work out how to change it. Maybe there are easier ways, but the following code works and I think it should be included in the README.

var handler = myStreamLogger.makeHandler(label: "StreamLogger")
handler.logLevel = .debug
LoggingSystem.bootstrap({ name in {return handler})

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