Add Print() and Log() methods to use in defer statements