hooks

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

hooks/main demonstrates the creation and use of logger hooks. It: 1. Creates instances of MetricsHook and AlertHook 2. Configures a logger with these hooks and default settings 3. Generates various log messages that trigger the hooks 4. Displays the final metrics gathered by the MetricsHook

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL