C# Class SigStat.Common.Helpers.LogEntry

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

Méthodes publiques

Свойство Type Description
Level LogLevel
Message string
Sender object
Timestamp DateTime

Méthodes publiques

Méthode Description
ToString ( ) : string

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

Private Methods

Méthode Description
LogEntry ( DateTime timestamp, LogLevel level, object sender, string message ) : System

Method Details

ToString() public méthode

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

Property Details

Level public_oe property

Log level of the entry.
public LogLevel Level
Résultat LogLevel

Message public_oe property

Main content of the entry.
public string Message
Résultat string

Sender public_oe property

Reference of the object that created the entry.
public object Sender
Résultat object

Timestamp public_oe property

Exact date and time of the entry's creation.
public DateTime Timestamp
Résultat DateTime