fix log formatter