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 we're running in (dev/prod/...).
log_level
class-attribute
instance-attribute
¶
The logging level of the application.
name
class-attribute
instance-attribute
¶
Name and version of the application.
otel_connection_string
class-attribute
instance-attribute
¶
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
¶
Enables debug logging to the console for OpenTelemetry.