usage-logging

Solid

Consult this skill when implementing usage logging and audit trails.

AI & Automation 297 stars 27 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
82
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
6 months ago
Last Updated
today
Language
Python
License
MIT

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 mentions being stuck, hitting an impasse, needing to understand concepts, or wanting to capture learnings.

0 Updated 6 days ago
quicksketcherz
AI & Automation Listed

structlog

Structured logging for Python applications with context support and powerful processors

335 Updated today
aiskillstore
AI & Automation Listed

observability

Query and analyze agent JSONL event logs for debugging, performance analysis, and decision tracing. Use when investigating agent behavior, finding slow tool calls, tracing decisions, or analyzing session performance.

34 Updated today
rjmurillo
AI & Automation Solid

implementing-database-audit-logging

This skill helps implement database audit logging for tracking changes and ensuring compliance. It is triggered when the user requests to "implement database audit logging", "add audit trails", "track database changes", or mentions "audit_log" in relation to a database. The skill provides options for trigger-based auditing, application-level logging, Change Data Capture (CDC), and parsing database logs. It generates a basic audit table schema and guides the user through selecting the appropriate auditing strategy.

2,274 Updated today
jeremylongshore
AI & Automation Listed

logging-observability-standards

When setting up telemetry, debugging distributed systems, or standardizing application output.

4 Updated 1 weeks ago
KraitDev