SafirConfig

class gafaelfawr.config.SafirConfig(log_level: str, name: str = 'gafaelfawr', profile: str = 'production', logger_name: str = 'gafaelfawr')

Bases: object

Safir configuration for Gafaelfawr.

These configuration settings are used by the Safir middleware.

Attributes Summary

logger_name The root name of the application’s logger.
name The application’s name, which doubles as the root HTTP endpoint path.
profile Application run profile – “development” or “production”.

Attributes Documentation

logger_name = 'gafaelfawr'

The root name of the application’s logger.

Set with the SAFIR_LOGGER environment variable.

name = 'gafaelfawr'

The application’s name, which doubles as the root HTTP endpoint path.

Set with the SAFIR_NAME environment variable.

profile = 'production'

Application run profile – “development” or “production”.

Set with the SAFIR_PROFILE environment variable.