Logging Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the logging configuration for a service in a containerized environment.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Logging
[<YamlDotNet.Serialization.YamlSerializable>]
type Logging = class
Public NotInheritable Class Logging
- Inheritance
-
Logging
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
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() |
Properties
Driver |
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 |
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. |