Added log to stdio mode.