crefft Source 2026.10.4

Logging Style Guide

crefft > Infrastructure > Logging

The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119.

Quick Reference

TaskToolCommand
View logsjournalctljournalctl -f
Filter by unitjournalctljournalctl -u nginx
Export logsjournalctljournalctl --output=json

Overview

TODO: Centralized logging architecture for infrastructure.

journald Configuration

TODO: /etc/systemd/journald.conf, storage, retention.

Structured Logging

TODO: JSON logging, log levels, correlation IDs.

Log Aggregation

TODO: Loki, Vector, or rsyslog forwarding.

Log Retention

TODO: Rotation policies, compliance requirements.

Security

TODO: Log integrity, tamper detection, access control.

See Also