private void OnLog_callback(object sender, ref LogField log) { (sender as XApi).GetLog().Info("OnLog:" + log.ToFormattedString()); }