README does not describe how to set LOG_LEVEL when using with Swift-log
Open
- 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
Assessment
This issue has not been assessed yet.