Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
/ zlpretty Public archive
forked from UnnoTed/horizontal

pretty logging based on the zerolog.ConsoleWriter

License

Notifications You must be signed in to change notification settings

lime008/zlpretty

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❗Archiving this project for github.com/lime008/liitu that also provides a slog handler.

zlpretty is a pretty logging with focus on readability, based on the zerolog.ConsoleWriter but with some added features like json pretty printing.

zlpretty

go get -u github.com/lime008/zlpretty

package main

import (
	"os"

	"github.com/lime008/zlpretty"
	"github.com/rs/zerolog/log"
)

func main() {
	log.Logger = log.Output(zlpretty.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

Packages

No packages published

Languages

  • Go 100.0%