Categorygithub.com/UnnoTed/horizontal
repositorypackage
0.0.0-20220811200655-cbe810c8df9b
Repository: https://github.com/unnoted/horizontal.git
Documentation: pkg.go.dev

# 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

go get -u github.com/UnnoTed/horizontal

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