Sisk

Constructor

LogStreamEntry constructor

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

LogStreamEntry(string) #

Initializes a new instance of the LogEntry class with the specified message and an information log level.

C#
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.

C#
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.

C#
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.

Type to search the documentation and the API reference.