bitPhile

Home

❯

notes

❯

tech

❯

CPython

❯

logging

❯

logrecord attributes

logrecord-attributes

Jul 14, 20241 min read

  • logs
  • python

LogRecord Attributes

While constructing the format for the log, we can provide LogRecord attributes such asctime, message etc.

logging.basicConfig(
                    format="%(levelname)s - %(message)s - %(filename)"
                    )

References

  1. https://docs.python.org/3/library/logging.html#logrecord-attributes

Graph View

  • LogRecord Attributes
  • References

Created with Quartz v4.5.0 © 2025

  • GitHub
  • Discord Community