usage-logging

Featured

Consult this skill when implementing usage logging and audit trails.

AI & Automation 350 stars 43 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
85
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Core Concepts](#core-concepts) - [Session Management](#session-management) - [Log Entry Structure](#log-entry-structure) - [Quick Start](#quick-start) - [Initialize Logger](#initialize-logger) - [Log Operations](#log-operations) - [Query Usage](#query-usage) - [Integration Pattern](#integration-pattern) - [Log Storage](#log-storage) - [Detailed Resources](#detailed-resources) - [Exit Criteria](#exit-criteria) # Usage Logging ## Overview Session-aware logging infrastructure for tracking operations across plugins. Provides structured JSONL logging with automatic session management for audit trails and analytics. ## When To Use - Need audit trails for operations - Tracking costs across sessions - Building usage analytics - Debugging with operation history ## When NOT To Use - Simple operations without logging needs ## Core Concepts ### Session Management Sessions group related operations: - Auto-created on first operation - Timeout after 1 hour of inactivity - Unique session IDs for tracking ### Log Entry Structure ```json { "timestamp": "2025-12-05T10:30:00Z", "session_id": "session_1733394600", "service": "my-service", "operation": "analyze_files", "tokens": 5000, "success": true, "duration_seconds": 2.5, "metadata": {} } ``` **Verification:** Run the command with `--help` flag to verify availability. ## Quick Start ### Initialize Logger ```python from leyline.usage_lo...

Details

Author
athola
Repository
athola/claude-night-market
Created
12 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

session-log-companion

Comprehensive project session companion for documenting work sessions, creating knowledge logs when discovering or learning something, teaching agent preferences, and improving collaboration. Use when user says "start a session", "create session log", "summarize this session", "document this discovery", "create a knowledge log", "I want to improve how you work with me", "remember this preference", "let's continue", "continue from last session", "pick up where we left off", "what should I work on next", or any session/documentation-related request. Also trigger when user says "log this tangent", "log this branch", "make a tangent log", "make a branch log", "spinoff log", or "branched session log", or when one chat covered two projects belonging in two different folders — see Workflow 4b's four-test bar before suggesting a split. Also trigger when user mentions being stuck, hitting an impasse, needing to understand concepts, or wanting to capture learnings.

0 Updated 2 weeks ago
quicksketcherz
AI & Automation Listed

session-log-companion

Comprehensive project session companion for documenting work sessions, creating knowledge logs when discovering or learning something, teaching agent preferences, and improving collaboration. Use when user says "start a session", "create session log", "summarize this session", "document this discovery", "create a knowledge log", "I want to improve how you work with me", "remember this preference", "let's continue", "continue from last session", "pick up where we left off", "what should I work on next", or any session/documentation-related request. Also trigger when user says "log this tangent", "log this branch", "make a tangent log", "make a branch log", "spinoff log", or "branched session log", or when one chat covered two projects belonging in two different folders — see Workflow 4b's four-test bar before suggesting a split. Also trigger when user mentions being stuck, hitting an impasse, needing to understand concepts, or wanting to capture learnings.

0 Updated 2 weeks ago
quicksketcherz
AI & Automation Listed

structlog

Structured logging for Python applications with context support and powerful processors

493 Updated today
aiskillstore