buf: github.com/bufbuild/buf/internal/pkg/zaputil Index | Files

package zaputil

import "github.com/bufbuild/buf/internal/pkg/zaputil"

Package zaputil implements utilities for zap.

Index

Package Files

vars.go zaputil.go

func NewColortextEncoder Uses

func NewColortextEncoder() zapcore.Encoder

NewColortextEncoder returns a new colortext Encoder.

func NewJSONEncoder Uses

func NewJSONEncoder() zapcore.Encoder

NewJSONEncoder returns a new JSON encoder.

func NewLogger Uses

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

NewLogger returns a new Logger.

func NewTextEncoder Uses

func NewTextEncoder() zapcore.Encoder

NewTextEncoder returns a new text Encoder.

Package zaputil imports 3 packages (graph) and is imported by 1 packages. Updated 2020-07-17. Refresh now. Tools for package owners.