Open log file with O_APPEND in daemon mode