Create magic.log lazily