UnnoTed / horizontal

pretty logging based on the zerolog.ConsoleWriter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 100.0%