Skip to content

Enable use of logger for Notecard "debug #53

Description

@gwolffblues

I am limited in how I log Notecard debug information.
Using notecard.OpenSerial(port,debug=True) uses the Python native print function.

I would like the option to set the debug print function so I can provide my own debug logging function, or use one of the logging methods from the Python logging package.

That way I'm not restricted to recording debug information where print sends the message. But rather I can control how and where debug messages are stored and displayed.

Using print as the default is certainly fine.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions