Exemple #1
0
 private static MyInheritedCustomLogEntry GetCustomLogEntry()
 {
     MyInheritedCustomLogEntry entry = new MyInheritedCustomLogEntry();
     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;
 }
        private static MyInheritedCustomLogEntry GetCustomLogEntry()
        {
            MyInheritedCustomLogEntry entry = new MyInheritedCustomLogEntry();

            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);
        }