Back to

Package clizap

Latest Go to latest

The latest major version is .

Published: Jan 30, 2020 | License: Apache-2.0 | Module:


Package clizap contains utilities to work with zap logging.


func NewLogger

func NewLogger(writer io.Writer, level string, format string) (*zap.Logger, error)

NewLogger returns a new Logger.

The level can be [debug,info,warn,error]. The default is info. The format can be [text,color,json]. The default is color.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier