Published Dec 19, 2015

The Twelve-Factor App: Dev/Prod Parity, Logs, and Admin Processes

    Delve into the core principles of the Twelve-Factor App as the team dissects dev/prod parity, logging excellence, and the integration of administrative processes, underscoring the crucial role of developer accountability in seamless code deployment.
    Episode Highlights
    Coding Blocks logo

    Popular Clips

    Episode Highlights

    • Importance

      Logging is crucial for maintaining the integrity and security of any production environment. Michael Outlaw emphasizes that logs are essential for retracing steps in debugging and regulatory compliance, especially in financial sectors. Alan Underwood agrees, noting that not having logs isn't an option for many industries.

      If you're wiring money, you need to know every step of the way exactly what happened.

      --- Michael Outlaw

      Despite some opinions that logs shouldn't be the primary forensic tool, the consensus is that they are indispensable for effective troubleshooting and compliance 1.

         

      Strategies

      Effective logging strategies can significantly enhance application performance and maintainability. Joe Zack discusses the benefits of logging to standard output, allowing the environment to handle log management. This approach simplifies configuration and ensures consistency across different environments.

      You just do your standard out and then you let the environment handle it.

      --- Michael Outlaw

      This method contrasts with traditional logging libraries like Log4j, which offer more granular control but require more complex configuration 2.

         

      Implementation

      Real-world logging implementations reveal the balance between too much and too little logging. Joe Zack shares his love for logs but acknowledges the challenges of finding the right logging level. Excessive logging can slow down applications, while insufficient logging hampers debugging efforts.

      I've been in situations where I was logging too much and it actually would slow the app down.

      --- Joe Zack

      Treating logs as event streams and logging to the console can streamline log management and improve application performance 3.

    Related Episodes