Add format to the console_logger and add disconnection control in remote_logger.