Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable use of logger for Notecard "debug #53

Open
gwolffblues opened this issue Dec 15, 2022 · 0 comments
Open

Enable use of logger for Notecard "debug #53

gwolffblues opened this issue Dec 15, 2022 · 0 comments

Comments

@gwolffblues
Copy link
Contributor

gwolffblues commented Dec 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant