コード例 #1
0
        public void AddAttribute()
        {
            var entry = new LogEntry(DateTime.Now, "testmsg");

            Assert.That(entry.HasAttribute(LogAttribute.ThreadID), Is.False);

            entry.AddAttribute(LogAttribute.ThreadID, "threadid");

            Assert.That(entry.HasAttribute(LogAttribute.ThreadID), Is.True);
        }
コード例 #2
0
 public LogEntryBuilder And(LogAttribute attribute, object value)
 {
     entry.AddAttribute(attribute, value);
     return(this);
 }