C# Class SigStat.Common.Helpers.LogEntry

Represents a single entry of the log, consisting of a timestamp, a level, a sender and the message.
Datei anzeigen Open project: bmeaut/sigstat

Public Properties

Property Type Description
Level LogLevel
Message string
Sender object
Timestamp DateTime

Public Methods

Method Description
ToString ( ) : string

Format the contained data to string, divided by tab characters. Use this to display the entry in the console.

Private Methods

Method Description
LogEntry ( DateTime timestamp, LogLevel level, object sender, string message ) : System

Method Details

ToString() public method

Format the contained data to string, divided by tab characters. Use this to display the entry in the console.
public ToString ( ) : string
return string

Property Details

Level public_oe property

Log level of the entry.
public LogLevel Level
return LogLevel

Message public_oe property

Main content of the entry.
public string Message
return string

Sender public_oe property

Reference of the object that created the entry.
public object Sender
return object

Timestamp public_oe property

Exact date and time of the entry's creation.
public DateTime Timestamp
return DateTime