Kitura / Kitura/HeliumLogger

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

Open
#76 2 comments 1 reaction 1 assignee Claimed by @adam-rocska View on GitHub
Dominant language
Swift
Stars
175
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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})

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.