SafirConfig¶
-
class
gafaelfawr.config.SafirConfig(log_level: str, name: str = 'gafaelfawr', profile: str = 'production', logger_name: str = 'gafaelfawr')¶ Bases:
objectSafir configuration for Gafaelfawr.
These configuration settings are used by the Safir middleware.
Attributes Summary
logger_nameThe root name of the application’s logger. nameThe application’s name, which doubles as the root HTTP endpoint path. profileApplication run profile – “development” or “production”. Attributes Documentation
-
logger_name= 'gafaelfawr'¶ The root name of the application’s logger.
Set with the
SAFIR_LOGGERenvironment variable.
-
name= 'gafaelfawr'¶ The application’s name, which doubles as the root HTTP endpoint path.
Set with the
SAFIR_NAMEenvironment variable.
-
profile= 'production'¶ Application run profile – “development” or “production”.
Set with the
SAFIR_PROFILEenvironment variable.
-