diff --git a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py index 64dfab5..dce9926 100644 --- a/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py +++ b/gunicorn-logging-extension/src/gunicorn_logging_extension/__init__.py @@ -37,6 +37,7 @@ CONFIG_DEFAULTS = { class Logger(gLogger): + access_log_format = "Access(%(s)s) %(r)s" def __init__(self, cfg): self.logfile = None @@ -112,6 +113,6 @@ class Logger(gLogger): extra["USER_AGENT"] = environ.get("HTTP_USER_AGENT") try: - level(self.cfg.access_log_format, safe_atoms, extra=extra) + level(self.access_log_format, safe_atoms, extra=extra) except Exception: self.error(traceback.format_exc())