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

package applog

import "github.com/bufbuild/buf/internal/pkg/app/applog"

Package applog contains utilities to work with logging.

Index

Package Files

applog.go container.go

func NewLogger Uses

func NewLogger(writer io.Writer, levelString 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.

type Container Uses

type Container interface {
    Logger() *zap.Logger
}

Container is a container.

func NewContainer Uses

func NewContainer(logger *zap.Logger) Container

NewContainer returns a new Container.

Package applog imports 6 packages (graph) and is imported by 1 packages. Updated 2020-10-20. Refresh now. Tools for package owners.