Table of Contents

Class LogRecord

Namespace
Tripous.Logging
Assembly
Tripous.Logging.dll

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

Entry LogEntry

The log entry to copy values from.

Properties

Date

Gets the date text of the log entry.

public string Date { get; }

Property Value

string

EventId

Gets the event identifier of the log entry.

public string EventId { get; }

Property Value

string

Host

Gets the host name associated with the log entry.

public string Host { get; }

Property Value

string

Id

Gets the log entry identifier.

public string Id { get; }

Property Value

string

Level

Gets the log level text.

public string Level { get; }

Property Value

string

Message

Gets the log message.

public string Message { get; }

Property Value

string

Properties

Gets the log entry properties in a single-line text format.

public string Properties { get; }

Property Value

string

Scope

Gets the scope identifier of the log entry.

public string Scope { get; }

Property Value

string

Source

Gets the source of the log entry.

public string Source { get; }

Property Value

string

Stack

Gets the stack or exception information of the log entry.

public string Stack { get; }

Property Value

string

Time

Gets the time text of the log entry.

public string Time { get; }

Property Value

string

TimeStamp

Gets the timestamp of the log entry.

public DateTime TimeStamp { get; }

Property Value

DateTime

User

Gets the user name associated with the log entry.

public string User { get; }

Property Value

string

Methods

AddToRow(DataRow)

Adds this log record to a data row.

public void AddToRow(DataRow Row)

Parameters

Row DataRow

The data row to populate.

MessageFull()

Returns the full log message, including properties and stack information.

public string MessageFull()

Returns

string