add log write