Search Results for

    Show / Hide Table of Contents

    Class LoggerConfiguration

    Class LoggerConfiguration. Implements the Microsoft.Extensions.Options.IOptions{LoggerConfiguration}

    Inheritance
    object
    LoggerConfiguration
    Implements
    IOptions<LoggerConfiguration>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    IOptions<TOptions>

    See Also

    Microsoft.Extensions.Options.IOptions{LoggerConfiguration}
    In this article
    Back to top Powertools for AWS Lambda (.NET) API Documentation