Class LogRecord
Represents a log entry in a tabular form.
public class LogRecord
- Inheritance
-
LogRecord
- Inherited Members
- Extension Methods
Constructors
LogRecord(LogEntry)
Initializes a new instance of the LogRecord class.
public LogRecord(LogEntry Entry)
Parameters
EntryLogEntryThe log entry to copy values from.
Properties
Date
Gets the date text of the log entry.
public string Date { get; }
Property Value
EventId
Gets the event identifier of the log entry.
public string EventId { get; }
Property Value
Host
Gets the host name associated with the log entry.
public string Host { get; }
Property Value
Id
Gets the log entry identifier.
public string Id { get; }
Property Value
Level
Gets the log level text.
public string Level { get; }
Property Value
Message
Gets the log message.
public string Message { get; }
Property Value
Properties
Gets the log entry properties in a single-line text format.
public string Properties { get; }
Property Value
Scope
Gets the scope identifier of the log entry.
public string Scope { get; }
Property Value
Source
Gets the source of the log entry.
public string Source { get; }
Property Value
Stack
Gets the stack or exception information of the log entry.
public string Stack { get; }
Property Value
Time
Gets the time text of the log entry.
public string Time { get; }
Property Value
TimeStamp
Gets the timestamp of the log entry.
public DateTime TimeStamp { get; }
Property Value
User
Gets the user name associated with the log entry.
public string User { get; }
Property Value
Methods
AddToRow(DataRow)
Adds this log record to a data row.
public void AddToRow(DataRow Row)
Parameters
RowDataRowThe data row to populate.
MessageFull()
Returns the full log message, including properties and stack information.
public string MessageFull()