8000 Tags · neoff/glogi · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v0.6.1

Toggle v0.6.1's commit message

Verified

This commit was signed with the committer’s verified signature.
neoff ENVarg
fix: remove duplicate Fatalf

v0.6.0

Toggle v0.6.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neoff ENVarg
feat: add formatted log methods (Tracef, Debugf, etc.)

v0.5.3

Toggle v0.5.3's commit message
fix: change DEBUG color to DarkGray

v0.5.2

Toggle v0.5.2's commit message
fix: revert DEBUG to LightGray, colorize message ONLY for TRACE level

v0.5.1

Toggle v0.5.1's commit message
fix: change DEBUG color to Cyan because LightGray is indistinguishabl…

…e from default text

v0.5.0

Toggle v0.5.0's commit message
feat: colorize full log message and swap TRACE/DEBUG colors

- Full log message (including attributes) now inherits the level color
- Swapped colors: DEBUG is now light gray, TRACE is now dark gray

v0.4.0

Toggle v0.4.0's commit message
feat: configurable source width and colors via env

- LOG_SOURCE_WIDTH: fixed width for source column (default 20)
- LOG_NO_COLOR: disable all colors
- LOG_COLOR_*: configure colors for each level and source
- Named colors: red, green, yellow, blue, magenta, cyan, white, gray
- Programmatic: SetSourceWidth(), SetColor*(), DisableColors()

v0.3.0

Toggle v0.3.0's commit message
feat: new log format [time] LEVEL [source] message

- Time in brackets
- Level fixed 5-char width (no brackets)
- Source in brackets, green color, fixed width
- Add SetSourceWidth() function (default 15)
- Update README with new format

v0.2.0

Toggle v0.2.0's commit message
feat: add source file and line number to log output

- Format: 2025/12/26 15:04:05 main.go:190: [LEVEL] message
- Use runtime.Callers to get correct caller location
- Works for both structured (Info, Debug, etc.) and compat (Printf, Println) functions

v0.1.0

Toggle v0.1.0's commit message
feat: initial release of glogi logging library

- Structured logging with log/slog
- Colored output: TRACE (light gray), DEBUG (gray), INFO, WARN (yellow), ERROR (red)
- LOG_LEVEL env configuration (default: INFO)
- Backward compatibility with standard log package (Print, Printf, Fatal, Panic)
- Panic recovery with stack trace
0