logHandler
A custom sink for library logs.
Installing a handler is itself an opt-in: it receives messages regardless of isEnabled, which gates only the built-in console output. Setting isEnabled = false therefore does not silence a handler already installed — set this back to null to do that.
Only permission identifiers and flow state are passed here. The contents of a permission — a contact, an event, a coordinate — never reach the logger.