Skip to content

Look Into SwiftLog #29

Description

@emorydunn

The plugin makes heavy use of OSLog for internal logging, which is important, especially for any plugin communication messages. Logging through the StreamDeck app is useful for actual plugins, but the library can't rely on the WebSocket being open. While this is fine for development it's hard for collect logs from users if needed.

Using (SwiftLog)[https://github.com/apple/swift-log] as the logging system could allow for easier user logging. There are a couple of options here.

One would simply be to replace OSLog with SwiftLog without specifying a backend. This would leave any log collection up to the plugin developer, allowing for whatever logging backing they'd like to use.
The other option would be to implement a basic file logger (or use an existing library) to provide a default log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions