logging

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(writer io.Writer, level Level, format Format) (*zap.Logger, error)

Types

type Format

type Format string
const (
	FormatConsole      Format = "console"
	FormatColorConsole Format = "color"
	FormatJSON         Format = "json"
	FormatUnspecified  Format = ""
)

type Level

type Level string
const (
	LevelInfo        Level = "info"
	LevelDebug       Level = "debug"
	LevelWarn        Level = "warn"
	LevelError       Level = "error"
	LevelUnspecified Level = ""
)

Jump to

Keyboard shortcuts

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