1
0
mirror of https://github.com/taigrr/log-socket synced 2026-03-20 17:12:24 -07:00
Files
log-socket/log/log.go
Tai Groot 0453539d29 feat(log): add colored terminal output without external packages
Adds ANSI color-coded log levels for terminal output:
- TRACE: Gray
- DEBUG: Cyan
- INFO: Green
- NOTICE: Blue
- WARN: Yellow
- ERROR/PANIC/FATAL: Red (bold for PANIC/FATAL)

Colors are auto-detected based on terminal capability and can be
controlled via SetColorEnabled()/ColorEnabled().

Fixes #9
2026-02-08 08:11:26 +00:00

11 KiB