logging is now captured for tests