write to log test