Constructor
LogStreamEntry constructor
LogStreamEntry(string) #
Initializes a new instance of the LogEntry class with the specified message and an information log level.
public LogStreamEntry(string message)Parameters #
message string
The log message to associate with this entry. Cannot be null.
Remarks #
The log entry is timestamped with the current date and time, and its level is set to Information by default.
LogStreamEntry(LogEntryLevel, string) #
Initializes a new instance of the LogStreamEntry struct with the specified level and message, setting the moment to the current time.
public LogStreamEntry(LogEntryLevel level, string message)Parameters #
level LogEntryLevel
The severity level of the log entry.
message string
The log message.
LogStreamEntry(DateTimeOffset, LogEntryLevel, string) #
Initializes a new instance of the LogStreamEntry struct with the specified moment, level, and message.
public LogStreamEntry(DateTimeOffset moment, LogEntryLevel level, string message)Parameters #
moment DateTimeOffset
The point in time when the log entry was created.
level LogEntryLevel
The severity level of the log entry.
message string
The log message.