ContainerLoggingOptions Class

Logging options for a container.

public sealed class ContainerLoggingOptions

Properties

NameDescription
CaptureStandardErrorGets or sets a value indicating whether standard error is forwarded to ContainerLoggingOptions.Logger.
CaptureStandardOutputGets or sets a value indicating whether standard output is forwarded to ContainerLoggingOptions.Logger.
LoggerGets or sets the logger used to forward container logs while the container is running.

CaptureStandardError

ContainerLoggingOptions.cs

Gets or sets a value indicating whether standard error is forwarded to ContainerLoggingOptions.Logger.

public bool CaptureStandardError { get; set; }

Property value

bool

CaptureStandardOutput

ContainerLoggingOptions.cs

Gets or sets a value indicating whether standard output is forwarded to ContainerLoggingOptions.Logger.

public bool CaptureStandardOutput { get; set; }

Property value

bool

Gets or sets the logger used to forward container logs while the container is running.

public ILogger? Logger { get; set; }

Property value

ILogger?