# Logging

- Kind: `class`
- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Docker.Resources.ServiceNodes`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Logging.cs)

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

## Definition

```csharp
namespace Aspire.Hosting.Docker.Resources.ServiceNodes;

public sealed class Logging
{
    // ...
}
```

## 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.

## Constructors

- [Logging](/reference/api/csharp/aspire.hosting.docker/logging/constructors.md#constructor)

## Properties

- [Driver](/reference/api/csharp/aspire.hosting.docker/logging/properties.md#driver) : `string?` `get; set` -- 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.
- [Options](/reference/api/csharp/aspire.hosting.docker/logging/properties.md#options) : `Dictionary<string, string>` `get; set` -- 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.
