Abstract logging into an interface