ContainerLogsOptions Class
Selects the log entries returned by TemporaryContainer.GetLogsAsync.
public sealed class ContainerLogsOptionsConstructors
| Name | Description |
|---|---|
| ContainerLogsOptions() | Initializes a new instance of the ContainerLogsOptions class, which returns every entry and follows the new ones. |
ContainerLogsOptions()
ContainerLogsOptions.csInitializes a new instance of the ContainerLogsOptions class, which returns every entry and follows the new ones.
public ContainerLogsOptions()Properties
| Name | Description |
|---|---|
| Follow | Gets or sets a value indicating whether the stream keeps returning new entries until the container stops or the enumeration is cancelled. The default value is true. |
| IncludeStandardError | Gets or sets a value indicating whether the entries written to the standard error are returned. The default value is true. |
| IncludeStandardOutput | Gets or sets a value indicating whether the entries written to the standard output are returned. The default value is true. |
| Since | Gets or sets the time of the oldest entry to return. Entries written at exactly this time are returned. |
| Tail | Gets or sets the number of entries to return from the end of the logs, or null to return all of them. |
| Until | Gets or sets the time of the newest entry to return. Entries written at exactly this time are returned. |
Follow
ContainerLogsOptions.csIncludeStandardError
ContainerLogsOptions.csIncludeStandardOutput
ContainerLogsOptions.csGets or sets the time of the oldest entry to return. Entries written at exactly this time are returned.
public DateTimeOffset? Since { get; set; }Property value
Remarks
The time is compared with the timestamps the runtime records, using the clock of the runtime. Not supported by the Apple container runtime, which does not record timestamps.
Gets or sets the number of entries to return from the end of the logs, or null to return all of them.
public int? Tail { get; set; }Property value
Remarks
When ContainerLogsOptions.Since or ContainerLogsOptions.Until is set too, the runtime takes the last entries first, then drops the ones outside the time range.
Gets or sets the time of the newest entry to return. Entries written at exactly this time are returned.
public DateTimeOffset? Until { get; set; }Property value
Remarks
The time is compared with the timestamps the runtime records, using the clock of the runtime. Not supported by the Apple container runtime, which does not record timestamps.