An open API service indexing awesome lists of open source software.

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

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.

![horizontal](https://i.imgur.com/RvuuYSj.png)

`go get -u github.com/UnnoTed/horizontal`

```go
package main

import (
"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")
}

```