logutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Debugf

func Debugf(msg string, fields ...interface{})

Debugf only use in develop mode

func Error

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

func Errorf

func Errorf(msg string, fields ...interface{})

Errorf only use in develop mode

func Fatal

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

func Fatalf

func Fatalf(msg string, fields ...interface{})

Fatalf only use in develop mode

func GetGlobalLogger

func GetGlobalLogger() *zap.Logger

GetGlobalLogger returns the current global zap Logger.

func Info

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

func Infof

func Infof(msg string, fields ...interface{})

Infof only use in develop mode

func Panic

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

func Panicf

func Panicf(msg string, fields ...interface{})

Panicf only use in develop mode

func SetupMOLogger

func SetupMOLogger(path string)

SetupMOLogger sets up the global logger for MO Server.

func Warn

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

func Warnf

func Warnf(msg string, fields ...interface{})

Warnf only use in develop mode

Types

type GoettyLogger

type GoettyLogger struct{}

func (*GoettyLogger) Debugf

func (l *GoettyLogger) Debugf(msg string, fields ...interface{})

func (*GoettyLogger) Errorf

func (l *GoettyLogger) Errorf(msg string, fields ...interface{})

func (*GoettyLogger) Fatalf

func (l *GoettyLogger) Fatalf(msg string, fields ...interface{})

func (*GoettyLogger) Infof

func (l *GoettyLogger) Infof(msg string, fields ...interface{})

Jump to

Keyboard shortcuts

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