https://github.com/unnoted/horizontal
pretty logging based on the zerolog.ConsoleWriter
https://github.com/unnoted/horizontal
color json logging pretty pretty-print zerolog
Last synced: 7 days ago
JSON representation
pretty logging based on the zerolog.ConsoleWriter
- Host: GitHub
- URL: https://github.com/unnoted/horizontal
- Owner: UnnoTed
- License: mit
- Created: 2018-05-25T18:54:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T20:06:55.000Z (almost 3 years ago)
- Last Synced: 2025-05-14T18:12:19.506Z (7 days ago)
- Topics: color, json, logging, pretty, pretty-print, zerolog
- Language: Go
- Size: 6.84 KB
- Stars: 20
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Horizontal
Horizontal is a pretty logging with focus on readability, based on the `zerolog.ConsoleWriter` but with some added features like json pretty printing and log line separator.

`go get -u github.com/UnnoTed/horizontal`
```go
package mainimport (
"os""github.com/UnnoTed/horizontal"
"github.com/rs/zerolog/log"
)func main() {
log.Logger = log.Output(horizontal.ConsoleWriter{Out: os.Stderr})
log.Debug().Msg("hi")
log.Debug().Msg("hello")
}```