# Logging Properties

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [Logging](/reference/api/csharp/aspire.hosting.docker/logging.md)
- Kind: `Properties`
- Members: `2`

Represents the logging configuration for a service in a containerized environment.

## Driver

- Name: `Driver`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Logging.cs)

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.

```csharp
public string? Driver { get; set; }
```

## Options

- Name: `Options`
- Modifiers: `get; set`
- Returns: `Dictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Logging.cs)

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.

```csharp
public Dictionary<string, string> Options { get; set; }
```
