Open gcmullen opened 3 years ago
Seeing the entire base64 encoded image data is a bit jarring. I am in favor of somehow suppressing it.
Agreed. I just don't know where or how soon the addLoggingLevel()
function above should be called. I think it has to be done before the _logger = logging.getLogger(__name__)
call in each module. Ugh, I hope not, not sure how to get in front of that it that's the case. We will have to experiment with this.
https://github.com/xolox/python-coloredlogs
and
https://github.com/xolox/python-verboselogs
both available via pip install...
seem like decent options for implementing some extra log levels.
Sounds like we have an answer to the questions. Yes! with coloredlogs and verboselogs.
Need a tracker for implementation. If our framework takes advantage of these we will need the FW set up defaults properly with and give the DHS author the ability to override.
Potentially add a new logging level called
barf()
for really big messages like the jpegs that come through some messages.Here's how in general but there are risks and the
logging
documentation advises to use caution. https://stackoverflow.com/questions/2183233/how-to-add-a-custom-loglevel-to-pythons-logging-facility