Back to

Package applog

Latest Go to latest

The latest major version is .

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


Package applog contains utilities to work with logging.


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 {

	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