The default setup for the logging utility is a little unwieldy to set up for every project - though once done, it is likely to seldom change.
This snippet provides a pre-configured global logging utility allowing for a log level to be set via environment variable,
as well as a pretty-print dump()
log function that writes when level is set to DEBUG.
By default, logging goes to stdout
, but can be redirected to a file.