Send log messages to stdout via error_log func to prevent log corruption if there are a lot of concurrent processes