Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

main

v0.7.1
rivaas.dev/logging/examples/03-helper-methods

Documentation

pkg.go.dev ↗
Top ↑

Package main demonstrates logging helper methods and utilities.

This example covers:

  • LogDuration for timing operations
  • LogError and ErrorWithStack for error handling
  • LogRequest for HTTP request logging
  • Context-based field injection for request-scoped loggers
  • DebugInfo for diagnostic information

Dependency graph