more logging refactoring

this is a follow-up to #434, improving the way the logger
is accessed and cleaning up additional spots where the default
stdlib logger was still being used