Class LoggerConfiguration
Class LoggerConfiguration. Implements the Microsoft.Extensions.Options.IOptions{LoggerConfiguration}
Implements
Inherited Members
Namespace: AWS.Lambda.Powertools.Logging
Assembly: AWS.Lambda.Powertools.Logging.dll
Syntax
public class LoggerConfiguration : IOptions<LoggerConfiguration>
Properties
LoggerOutputCase
The logger output case.
This can be also set using the environment variable POWERTOOLS_LOGGER_CASE
.
Declaration
public LoggerOutputCase LoggerOutputCase { get; set; }
Property Value
Type | Description |
---|---|
LoggerOutputCase | The logger output case. |
MinimumLevel
Specify the minimum log level for logging (Information, by default).
This can be also set using the environment variable POWERTOOLS_LOG_LEVEL
.
Declaration
public LogLevel MinimumLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel | The minimum level. |
SamplingRate
Dynamically set a percentage of logs to DEBUG level.
This can be also set using the environment variable POWERTOOLS_LOGGER_SAMPLE_RATE
.
Declaration
public double SamplingRate { get; set; }
Property Value
Type | Description |
---|---|
double | The sampling rate. |
Service
Service name is used for logging.
This can be also set using the environment variable POWERTOOLS_SERVICE_NAME
.
Declaration
public string Service { get; set; }
Property Value
Type | Description |
---|---|
string | The service. |
Implements
See Also
Microsoft.Extensions.Options.IOptions{LoggerConfiguration}