logger: take a local copy of print