steamclock / bluejay

A simple Swift framework for building reliable Bluetooth LE apps.
MIT License
1.09k stars 98 forks source link

How can I change the log level? #269

Open haemi opened 11 months ago

haemi commented 11 months ago

Summary: I tried to change the log level to e.g. .warning, but I always get the extensive logging.

Steps to Reproduce:

  1. I imported XCGLogger
  2. in the AppDelegate, immediately after launching the app, I set
let log = XCGLogger.default
log.setup(level: .error)

This seems to be the wrong approach 🙂 But how can I change the log level?