xlog

package
v0.0.0-...-d5ac831 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TraceName = "lighthouse"

Variables

View Source
var Debug = logger.Debug
View Source
var Error = logger.Error
View Source
var Fatal = logger.Fatal
View Source
var Info = logger.Info
View Source
var Panic = logger.Panic
View Source
var Warn = logger.Warn

Functions

func InitLogger

func InitLogger(c *config.Log) (err error)

Types

type Log

type Log struct {
	*zap.Logger
}

func LoggerModule

func LoggerModule(moduleName string) *Log

LoggerModule release fields to a new logger. Plugins can use this method to release plugin name field.

func (*Log) WithContext

func (l *Log) WithContext(ctx context.Context) *zap.Logger

WithContext release fields to a new logger. Plugins can use this method to release plugin name field.

Jump to

Keyboard shortcuts

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