Unify loggers

Replace class-level loggers with module-level loggers (see #13) and fix some issues with log output being seen on stderr during the unit tests (see #12).