Skip to content
Docs Try Aspire

Logging Properties

Class Properties 2 members
Represents the logging configuration for a service in a containerized environment.
Driver Section titled Driver nullable string?
Gets or sets the logging driver to be used for the service node. This property specifies the logging mechanism, such as "json-file", "syslog", or "none", to determine how log data is managed.
public string? Driver { get; set; }
Options Section titled Options Dictionary<string, string>
Gets or sets a collection of key-value pairs representing the logging driver options. These options are configuration parameters used to customize the behavior of the logging driver.
public Dictionary<string, string> Options { get; set; }