applog

package
v1.0.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package applog contains utilities to work with logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type Container

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

Container is a container.

func NewContainer

func NewContainer(logger *zap.Logger) Container

NewContainer returns a new Container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL