{% extends "todos/base.html" %} {% block title %}Arguslog SDK Demos{% endblock %} {% block content %}

Arguslog Python SDK — all use cases

Each button below exercises a different part of the arguslog Python SDK. After clicking, check your arguslog dashboard for the matching event / issue.

1. Messages & exceptions

capture_message(info) capture_message(warning) capture_message(error) All 5 levels in one go capture_exception (try/except) Unhandled — middleware catches ZeroDivisionError

2. Identity (set_user)

set_user(VIP) set_user(None)

3. Tags & context

set_tag (feature_flag, ab_test) set_context (billing + device)

4. Breadcrumbs

4 breadcrumbs + exception Slow op with perf breadcrumbs

5. Integrations

Python logging → arguslog

The excepthook integration is also installed: any uncaught exception in a background thread or script using sys.excepthook would automatically reach arguslog. For request handlers we use the middleware.

6. Privacy / scrubbing

PII context (scrubbed)

Cards, CVVs, API keys and anything matching todo_secret_* are stripped before transport thanks to scrubbing_enabled=True + extra_scrub_patterns.

7. Lifecycle & introspection

flush(timeout=3.0) parse_dsn(...) get_client() info
{% endblock %}