protected bool Equals(LogRecord other)
 {
     return(Color.Equals(other.Color) && DateTime.Equals(other.DateTime) && RecordType.Equals(other.RecordType) && LogStrings.Equals(other.LogStrings));
 }
示例#2
0
 protected void OnLogEvent(LogRecord logRecord)
 {
     // ReSharper disable once UseNullPropagation
     LogEvent?.Invoke(this, new LogEventArgs(logRecord));
 }
示例#3
0
 public LogEventArgs(LogRecord logRecord)
 {
     LogRecord = logRecord;
 }
示例#4
0
        public void AppendDebug(ICollection <string> strings)
        {
            var logRec = new LogRecord(DateTime.Now, strings, LogRecordLevel.Debug, ConsoleColor.Blue);

            AppendLog(logRec);
        }