Logging
Class sealed net10.0
Represents the logging configuration for a service in a containerized environment.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes;
public sealed class Logging{ // ...}Remarks
Section titled Remarks This class defines the logging driver and its associated options that can be used to control how logs are handled for a service. It is typically used within the context of container orchestration platforms to configure logging behavior at a service level.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesDriverget; setstring? 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.
Optionsget; setDictionary<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.