Logging: put logger behind an interface