mirror of
https://github.com/taigrr/log-socket
synced 2026-03-20 14:52:27 -07:00
* docs: add example programs for common usage patterns Adds four focused examples in examples/ directory: - basic: drop-in logger with web UI - namespaces: namespace-based logging by component - client: programmatic log client with filtering - log-levels: all log levels and filtering Fixes #7 * feat(slog): add slog.Handler adapter for log-socket Implements log/slog.Handler that routes structured log records into the log-socket broadcasting system. Supports namespaces, WithAttrs, WithGroup, and configurable minimum level. Also adds Broadcast() as a public entry point for adapter packages that construct log.Entry values directly. * chore: update to Go 1.26, resolve slog LogValuer values
6 lines
95 B
Modula-2
6 lines
95 B
Modula-2
module github.com/taigrr/log-socket/v2
|
|
|
|
go 1.26.0
|
|
|
|
require github.com/gorilla/websocket v1.5.3
|