LogEntry Class

Represents a single log line emitted by a container.

public sealed class LogEntry : IEquatable<LogEntry>
Implements

Constructors

NameDescription
LogEntry(LogStream, string, DateTimeOffset?)Represents a single log line emitted by a container.

LogEntry(LogStream, string, DateTimeOffset?)

LogEntry.cs

Represents a single log line emitted by a container.

public LogEntry(LogStream Stream, string Message, DateTimeOffset? Timestamp)

Parameters

Stream LogStream
The stream the line was written to.
Message string
The log line, without the timestamp prefix.
Timestamp DateTimeOffset?
The timestamp reported by the runtime, when available.

Properties

NameDescription
MessageThe log line, without the timestamp prefix.
StreamThe stream the line was written to.
TimestampThe timestamp reported by the runtime, when available.

The log line, without the timestamp prefix.

public string Message { get; init; }

Property value

string

The stream the line was written to.

public LogStream Stream { get; init; }

Property value

LogStream

Timestamp

LogEntry.cs

The timestamp reported by the runtime, when available.

public DateTimeOffset? Timestamp { get; init; }

Property value

DateTimeOffset?

Methods

NameDescription
Deconstruct(LogStream, string, DateTimeOffset?)
Equals(LogEntry?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(LogStream, string, DateTimeOffset?)

public void Deconstruct(out LogStream Stream, out string Message, out DateTimeOffset? Timestamp)

Parameters

Stream LogStream
Message string
Timestamp DateTimeOffset?

No documentation is available.

Equals overloads

Equals(LogEntry?)

public bool Equals(LogEntry? other)
Parameters
other LogEntry?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(LogEntry?, LogEntry?)
operator !=(LogEntry?, LogEntry?)

operator ==(LogEntry?, LogEntry?)

public static bool operator ==(LogEntry? left, LogEntry? right)

Parameters

left LogEntry?
right LogEntry?

Returns

bool

No documentation is available.

operator !=(LogEntry?, LogEntry?)

public static bool operator !=(LogEntry? left, LogEntry? right)

Parameters

left LogEntry?
right LogEntry?

Returns

bool

No documentation is available.