add log to gate.log