Types

Levels / Severity

  • DEBUG
  • INFO
  • WARNING
  • ERROR / CRITICAL

Rules

  • Don’t log sensitive information, e.g. social security number, credit card numbers, passwords etc.

Best practices

  • Just because something can be logged, doesn’t mean it should be.
  • Log communication with 3rd party components.

References