Technical debt: replace global logger in Praefect
The logger global in Praefect has been a source of race conditions when running tests in parallel. This does not have an impact out of tests as only a single subcommand is executed in normal operations, but should still be cleaned up to make testing less error-prone.