Updated on 2025-05-22 GMT+08:00

OPS06-04 Standardizing Application Logs

Logs are events that are timestamped and immutable, happening sequentially over time. The system needs to record key incidents and faults to help diagnose and rectify faults.

  • Risk level

    High

  • Key strategies

    Logs are very important for a system. They record all events in the system, including successful operations, failed operations, and warning information. Hence, logging is a fundamental requirement in observability design. Logs can record events and error information in log files or databases. This is useful for troubleshooting and problem diagnosis. However, logging is not enough. Logs must be effectively managed and analyzed. Excessive logs can be burdensome as they consume storage space and make it time-consuming to locate relevant information. So, logs need to be filtered and archived for better management.

  • Design suggestions

    For details, see LTS Best Practices.