Skip to content

dbraley/horizontal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%