listened to the test: extract class that handles the logging