Interview Prep/Monitoring & Observability/Logging: ELK/EFK, Loki & Log Shippers

What log levels exist and how should they be used in production?

BeginnerConceptLogging: ELK/EFK, Loki & Log Shippers
Answer

Common levels: TRACE, DEBUG, INFO, WARN, ERROR, FATAL.

  • Production default: INFO; DEBUG only enabled dynamically for a service or request while debugging.
  • ERROR means something failed and someone may need to act; do not log expected validation failures as errors.
  • WARN is for degraded but handled situations (retry succeeded).

Log volume costs real money; most bills are driven by noisy INFO/DEBUG lines from a few services.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: ELK/EFK, Loki & Log Shippers