Skip to content
DocsTry Aspire
DocsTry

Logging Properties

ClassProperties2 members
Represents the logging configuration for a service in a containerized environment.
DriverSection titled Drivernullablestring?
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; }
OptionsSection titled OptionsDictionary<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; }