adapted Logging