You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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})
The text was updated successfully, but these errors were encountered:
myStreamLogger is a HeliumStreamLogger that I create using
HeliumStreamLogger( outputStream: makeLogStream()) where makeLogStream() is a function that returns an output stream.
I use myStreamLogger to create the handler.
I think the code should work equally well with a normal HeliumLogger.
I do not use HeliumLogger.bootstrapSwiftLog at all.
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.
The text was updated successfully, but these errors were encountered: