Skip to content

UnnoTed/horizontal

Repository files navigation

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

About

pretty logging based on the zerolog.ConsoleWriter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages