Skip to content
Night Brownie Night Brownie

Settings

Configuration for Night Brownie.

Classes:

  • AppSettings

    Configuration storage for Night Brownie.

AppSettings

Bases: BaseSettings

Configuration storage for Night Brownie.

Parameters:

  • name (str, default: 'Night Brownie (0.5.0)' ) –

    Name and version of the application.

  • environment (str, default: 'dev' ) –

    Environment we're running in (dev/prod/...).

  • log_level (str, default: 'INFO' ) –

    The logging level of the application.

  • otel_connection_string (str | None, default: None ) –

    The connection string used to connect to application insights. Additional configuration can be provided with https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

  • otel_debug (bool, default: False ) –

    Enables debug logging to the console for OpenTelemetry.

Attributes:

  • environment (str) –

    Environment we're running in (dev/prod/...).

  • is_production (bool) –

    Return True if we are in production.

  • log_level (str) –

    The logging level of the application.

  • name (str) –

    Name and version of the application.

  • otel_connection_string (str | None) –

    The connection string used to connect to application insights.

  • otel_debug (bool) –

    Enables debug logging to the console for OpenTelemetry.

environment class-attribute instance-attribute

environment: str = 'dev'

Environment we're running in (dev/prod/...).

is_production property

is_production: bool

Return True if we are in production.

log_level class-attribute instance-attribute

log_level: str = 'INFO'

The logging level of the application.

name class-attribute instance-attribute

name: str = f'Night Brownie ({__version__})'

Name and version of the application.

otel_connection_string class-attribute instance-attribute

otel_connection_string: str | None = Field(default=None)

The connection string used to connect to application insights. Additional configuration can be provided with https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

otel_debug class-attribute instance-attribute

otel_debug: bool = False

Enables debug logging to the console for OpenTelemetry.