Abstract logging so to be MC version agnostic.