Back to

Package zaputil

Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module:


Package zaputil implements utilities for zap.


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