Back to godoc.org

Package applog

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 applog contains utilities to work with logging.

Index

func NewLogger

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

type Container interface {
	app.Container

	Logger() *zap.Logger
}

Container is a container.

func NewContainer

func NewContainer(appContainer app.Container, logger *zap.Logger) Container

NewContainer returns a new Container.

Package Files

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

Jump to identifier

Keyboard shortcuts

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