add write log file in service