Back to godoc.org

Package zaputil

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Overview

Package zaputil implements utilities for zap.

Index

func NewColortextEncoder

func NewColortextEncoder() zapcore.Encoder

NewColortextEncoder returns a new colortext Encoder.

func NewJSONEncoder

func NewJSONEncoder() zapcore.Encoder

NewJSONEncoder returns a new JSON encoder.

func NewLogger

func NewLogger(
	writer io.Writer,
	level zapcore.Level,
	encoder zapcore.Encoder,
) *zap.Logger

NewLogger returns a new Logger.

func NewTextEncoder

func NewTextEncoder() zapcore.Encoder

NewTextEncoder returns a new text Encoder.

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

Jump to identifier

Keyboard shortcuts

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