コード例 #1
0
        private static MyCustomLogEntry GetCustomLogEntry()
        {
            MyCustomLogEntry entry = new MyCustomLogEntry();

            entry.Message     = CommonUtil.MsgBody;
            entry.Category    = CommonUtil.MsgCategory;
            entry.EventId     = CommonUtil.MsgEventID;
            entry.Title       = CommonUtil.MsgTitle;
            entry.Severity    = Severity.Error;
            entry.Priority    = 100;
            entry.TimeStamp   = DateTime.MaxValue;
            entry.MachineName = "machine";
            return(entry);
        }
コード例 #2
0
ファイル: WMILogSinkFixture.cs プロジェクト: bnantz/NCS-V1-1
 private static MyCustomLogEntry GetCustomLogEntry()
 {
     MyCustomLogEntry entry = new MyCustomLogEntry();
     entry.Message = CommonUtil.MsgBody;
     entry.Category = CommonUtil.MsgCategory;
     entry.EventId = CommonUtil.MsgEventID;
     entry.Title = CommonUtil.MsgTitle;
     entry.Severity = Severity.Error;
     entry.Priority = 100;
     entry.TimeStamp = DateTime.MaxValue;
     entry.MachineName = "machine";
     return entry;
 }