log

package
v0.0.0-...-9c44629 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func DPanic

func DPanic(msg string, fields ...field.Field)

func Debug

func Debug(msg string, fields ...field.Field)

func Error

func Error(msg string, fields ...field.Field)

func Fatal

func Fatal(msg string, fields ...field.Field)

func Info

func Info(msg string, fields ...field.Field)

func Init

func Init(logger *Logger)

func Panic

func Panic(msg string, fields ...field.Field)

func Warn

func Warn(msg string, fields ...field.Field)

Types

type Logger

type Logger struct {
	*zap.Logger
	Mode mode.Mode
}

func New

func New(options ...Option) *Logger

type Option

type Option func(*Logger)

func WithModeFromString

func WithModeFromString(value string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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