コード例 #1
0
ファイル: Extensions.cs プロジェクト: yawsh/XAPI2
 public static string ToFormattedString([In] this LogField field)
 {
     return(string.Format("[Level={0};Message={1}]",
                          Enum <LogLevel> .ToString(field.Level), field.Message()));
 }
コード例 #2
0
ファイル: Extensions.cs プロジェクト: yawsh/XAPI2
 public static string Message([In] this LogField field)
 {
     return(PInvokeUtility.GetUnicodeString(field.Message));
 }
コード例 #3
0
 private void OnLog_callback(object sender, ref LogField log)
 {
     (sender as XApi).Log.Info("OnLog:" + log.ToFormattedString());
 }