Discover Packages
github.com/dbraley/horizontal
command
module
Version:
v0.0.0-...-fe2e2c8
Opens a new window with list of versions in this module.
Published: May 26, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
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")
}
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.