UserFilter(logging.Filter): def filter(self, record) -> bool: record.app_name = str(getenv("app_name", "API")) return True
The set the env variable anywhere os.environ["app_name"] = "UTI"
os.environ["app_name"] = "UTI"