LogEntry Class
Represents a single log line emitted by a container.
public sealed class LogEntry : IEquatable<LogEntry>- Implements
Constructors
| Name | Description |
|---|---|
| LogEntry(LogStream, string, DateTimeOffset?) | Represents a single log line emitted by a container. |
LogEntry(LogStream, string, DateTimeOffset?)
LogEntry.csRepresents a single log line emitted by a container.
public LogEntry(LogStream Stream, string Message, DateTimeOffset? Timestamp)Parameters
StreamLogStream- The stream the line was written to.
Messagestring- The log line, without the timestamp prefix.
TimestampDateTimeOffset?- The timestamp reported by the runtime, when available.
Properties
| Name | Description |
|---|---|
| Message | The log line, without the timestamp prefix. |
| Stream | The stream the line was written to. |
| Timestamp | The timestamp reported by the runtime, when available. |
Message
LogEntry.csStream
LogEntry.csTimestamp
LogEntry.csThe timestamp reported by the runtime, when available.
public DateTimeOffset? Timestamp { get; init; }Property value
Methods
| Name | Description |
|---|---|
| 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
StreamLogStreamMessagestringTimestampDateTimeOffset?
No documentation is available.
Equals overloads
Equals(LogEntry?)
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(LogEntry?, LogEntry?) | |
| operator !=(LogEntry?, LogEntry?) |