What log levels should production services emit by default?
BeginnerProductionLog Pipelines
Answer
INFO by default, WARN and ERROR always, DEBUG off. Make the level changeable at runtime (config reload or a feature flag) so you can raise it for one service during an incident without redeploying, then lower it again. Don't log at INFO inside hot loops; that is what metrics are for.
More on Log Pipelines
What does a production log pipeline look like end to end?BeginnerWhy structured (JSON) logging, and what fields should every log line have?BeginnerFluent Bit, Vector, Grafana Alloy or the OpenTelemetry Collector: how do you choose a log agent?IntermediateWhy add an aggregation tier instead of sending directly from agents to the backend?IntermediateHow do you design log retention tiers?IntermediateHow do you scrub PII from logs in the pipeline?Intermediate