Back to godoc.org

Package clizap

v0.0.0-...-2009ccb
Latest Go to latest

The latest major version is .

Published: Jan 30, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/cli

Overview

Package clizap contains utilities to work with zap logging.

Index

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