Implement log rotation in openflow-switch.