---
title: "Discussion on \"Save Debug Logs Only When Your Python Script Crashes\" | Hashnode"
description: "Discussion on \"Save Debug Logs Only When Your Python Script Crashes\". An in-memory ring buffer of recent debug events, written to disk only on a crash, a hang or a logged error, in under 200 lines of standard-library Python."
url: "https://hashnode.com/posts/save-debug-logs-only-when-your-python-script-crashes-f3zvj/6afaf79433001e9009426d0e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Save Debug Logs Only When Your Python Script Crashes](https://blog.zyvop.com/save-debug-logs-only-when-your-python-script-crashes-f3zvj?utm_source=hashnode&utm_medium=feed)

An in-memory ring buffer of recent debug events, written to disk only on a crash, a hang or a logged error, in under 200 lines of standard-library Python.

12h ago · 13 min read · blog.zyvop.com  
Read the article

-   [#debugging](https://hashnode.com/tag/debugging)
-   [#devtools](https://hashnode.com/tag/devtools)
-   [#logging](https://hashnode.com/tag/logging)
-   [#observability](https://hashnode.com/tag/observability)
-   [#python](https://hashnode.com/tag/python)

## Written by

[ZyVOP](https://hashnode.com/@zyvop)

@zyvop · Delhi, India

  
[View profile](https://hashnode.com/@zyvop)

The Developer Publishing Hub

One platform to write, cross-post to Dev.to, Medium, WordPress, Hashnode, and Bluesky, and protect your SEO with canonical links. Zero paywalls and full content ownership.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
