MCPcopy
hub / github.com/benoitc/gunicorn / __init__

Method __init__

gunicorn/glogging.py:183–193  ·  view source on GitHub ↗
(self, cfg)

Source from the content-addressed store, hash-verified

181 atoms_wrapper_class = SafeAtoms
182
183 def __init__(self, cfg):
184 self.error_log = logging.getLogger("gunicorn.error")
185 self.error_log.propagate = False
186 self.access_log = logging.getLogger("gunicorn.access")
187 self.access_log.propagate = False
188 self.error_handlers = []
189 self.access_handlers = []
190 self.logfile = None
191 self.lock = threading.Lock()
192 self.cfg = cfg
193 self.setup(cfg)
194
195 def setup(self, cfg):
196 self.loglevel = self.LOG_LEVELS.get(cfg.loglevel.lower(), logging.INFO)

Callers 1

__init__Method · 0.45

Calls 1

setupMethod · 0.95

Tested by

no test coverage detected