Replies: 1 comment
-
The reference implementation of the command-line tools all use this logger class: https://github.com/wwkimball/yamlpath/blob/master/yamlpath/wrappers/consoleprinter.py Note the public API. You can subclass that one -- overriding the methods you'd like to control -- or write your own logger from scratch by duplicating the public API of that class. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
documentation mentions it's easy to implement a logger that is API compatible to the consoleprinter and uses standard python logging.
I wonder if yamlpath ships with such a logging alternative? Re-implementing is still tedious but required for using it as a library that uses the standard python logger.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions