Logging

Definition
Leave a trail of information, warnings, and errors as they occur in an external document that can be inspected later.
Logging architecture diagram

How does it work?

Whenever something interesting happens in the application, write a line describing it in the log.

When should you use it?

  • When you need to able to debug an error that occurred some time ago.

Problems

  • Too much logging fills up disk space and slows down debugging

Links