add log to write system