log

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

The main logger from which all child loggers should be derived.

Functions

func DPanic

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

func Debug

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

func Error

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

func Fatal

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

func Info

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

func UseDevLogger

func UseDevLogger()

func UseProdLogger

func UseProdLogger(filePath string, maxFileSizeMB int, maxFileAgeDays int, maxBackups int)

func Warn

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

Types

type StringMap

type StringMap map[string]string

func (StringMap) MarshalLogObject

func (m StringMap) MarshalLogObject(e zapcore.ObjectEncoder) error

Jump to

Keyboard shortcuts

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