add write log