MCPcopy
hub / github.com/pallets/werkzeug / log

Method log

src/werkzeug/serving.py:476–483  ·  view source on GitHub ↗
(self, type: str, message: str, *args: t.Any)

Source from the content-addressed store, hash-verified

474 self.log("info", format, *args)
475
476 def log(self, type: str, message: str, *args: t.Any) -> None:
477 # an IPv6 scoped address contains "%" which breaks logging
478 address_string = self.address_string().replace("%", "%%")
479 _log(
480 type,
481 f"{address_string} - - [{self.log_date_time_string()}] {message}\n",
482 *args,
483 )
484
485
486def _ansi_style(value: str, *styles: str) -> str:

Callers 3

log_requestMethod · 0.95
log_errorMethod · 0.95
log_messageMethod · 0.95

Calls 2

address_stringMethod · 0.95
_logFunction · 0.85

Tested by

no test coverage detected