Skip to content

Developers

Camill Kaipf edited this page Jan 23, 2023 · 8 revisions

Information for developers

Logging

Formats

  • log.warning("test", {"test_key": "test_value"}) # {"message": "test"}
  • log.warning("test", extra={"test": "test_value"}) # {"message": "test", "test": "test_value"}
  • log.warning(msg="test", extra={"test_key": "test_value"}) # {"message": "test", "test_key": "test_value"}
  • log.warning({"test": "test_value"}) # {"message": null, "test": "test_value"}
  • log.warning("hello potato", extra={"message": "hello sweet"}) # KeyError: "Attempt to overwrite 'message' in LogRecord"
  • log.warning({"message": "hello world"}) # {"message": "hello world"}

Conventions

  • Restrict sensitive contents to level debug
Clone this wiki locally