log

package
v0.0.0-...-b644e52 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(template string, args ...interface{})

func Enable

func Enable(enable bool)

func Error

func Error(template string, args ...interface{})

func Fatal

func Fatal(template string, args ...interface{})

func Info

func Info(template string, args ...interface{})

func Panic

func Panic(template string, args ...interface{})

func SetLevel

func SetLevel(level zapcore.Level)

func Warn

func Warn(template string, args ...interface{})

Types

type PerformanceLogger

type PerformanceLogger struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *PerformanceLogger

func (*PerformanceLogger) Start

func (p *PerformanceLogger) Start()

func (*PerformanceLogger) StopAndLog

func (p *PerformanceLogger) StopAndLog(method string, url string)

Jump to

Keyboard shortcuts

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