logging

package
v0.0.0-...-2d926ca Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: GPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DefaultTimeFamat = "06/01/02T15:04:05.000 MST"
)

Variables

This section is empty.

Functions

func FormatArgs

func FormatArgs(args ...interface{}) string

func GetGlobalLevel

func GetGlobalLevel() string

func NameToLevel

func NameToLevel(level string) zapcore.Level

func NewDefaultConfig

func NewDefaultConfig() zap.Config

func NewGlobalLogger

func NewGlobalLogger(field string) *zap.SugaredLogger

func NewLogger

func NewLogger(level, field string) *zap.Logger

NewLogger result not support Printf

func NewSugaredLogger

func NewSugaredLogger(level, field string) *zap.SugaredLogger

func SetGlobalLevel

func SetGlobalLevel(level string)

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Types

This section is empty.

Jump to

Keyboard shortcuts

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