Logging to io.writer instead