Fix logging initialization for testing/development.