11 private readonly
string message;
12 private readonly
string memberName;
13 private readonly
string filePath;
14 private readonly
int lineNumber;
15 private DateTime time;
26 public LoggerInfo(DateTime time,
Severity severity,
string message,
string memberName,
string filePath,
int lineNumber)
29 this.severity = severity;
30 this.message = message;
31 this.memberName = memberName;
32 this.filePath = filePath;
33 this.lineNumber = lineNumber;
44 return String.Format(
"{0}\t{1}\t{2}({3}:{4})\t{5}\t\t{6}{5}",
45 this.time.ToString(
"yyyy.MM.dd HH:mm:ss.fff"), this.severity, this.memberName, this.filePath, this.lineNumber, Environment.NewLine,
Severity
Severity of a log event
LoggerInfo(DateTime time, Severity severity, string message, string memberName, string filePath, int lineNumber)
Initializes a new instance of the LoggerInfo class.
Class for holding log information
override string ToString()
Returns a System.String that represents this instance.