コード例 #1
0
 public override string ToString()
 {
     return(string.Format(DefaultNumberedMessageFormat,
                          ThreadHashCode.ToString(),
                          ThreadId.ToString(),
                          ApplicationName,
                          ProcessId,
                          Utc.ToShortDateString(),
                          Utc.ToShortTimeString(),
                          Message));
 }
コード例 #2
0
        public override string ToString()
        {
            object names = new {
                ThreadHashCode  = ThreadHashCode.ToString(),
                ThreadId        = ThreadId.ToString(),
                ApplicationName = ApplicationName,
                ProcessId       = ProcessId.ToString(),
                UtcShortDate    = Utc.ToShortDateString(),
                UtcShortTime    = Utc.ToShortTimeString(),
                Message         = Message
            };

            return(NamedMessageFormat.NamedFormat(names));
        }