logging

Log executed SQL statements with bind arguments, duration, rows affected, and errors in Go.

5|Updated Jun 18, 2026
One-click install
npx skills add https://github.com/go-again/liteorm --skill logging-go-again
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging
Source: https://github.com/go-again/liteorm/tree/main/skills/logging
Command: npx skills add https://github.com/go-again/liteorm --skill logging-go-again

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for detailed tracking and logging of SQL execution during development with LiteORM, enabling better debugging and logging practices.

Core Features & Use Cases

  • SQL Statement Logging: Logs every executed SQL statement with details like bind args, duration, rows affected, and error information.
  • Colored Development Output: Provides colored output for quick identification of SQL statements and errors during development.
  • Structured Logs: Supports structured logging using the slog library for easier integration with log management systems.
  • Configuration Options: Offers various options for customization, including control over logging levels and output formatting.

Quick Start

Enable debug logging for LiteORM and start executing SQL statements to see detailed logs.

Frequently Asked Questions about logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log SQL statements executed by LiteORM in Go?

You can log SQL statements executed by LiteORM by enabling debug logging, which records the SQL query, bind arguments, execution duration, rows affected, and errors for your Go application.

What details are included in LiteORM SQL execution logs?

LiteORM SQL execution logs include the executed SQL statement, bind arguments, execution duration, rows affected, and any errors encountered during the database query execution.

Can I use structured logging with LiteORM for production environments?

Yes, LiteORM supports structured logging via the slog library, allowing integration with log management systems while using configurable options for logging levels in production environments.

Does LiteORM logging support colored console output for development debugging?

Yes, LiteORM logging supports colored console output to provide quick visual identification of SQL statements and errors during development debugging.

What is the best way to configure SQL logging options for LiteORM?

The best way to configure SQL logging for LiteORM is by using its built-in configuration options to control logging levels and output formatting for different environments.