Beispiel #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);
        }
Beispiel #2
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;
 }