log

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 20

README

Logger for go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AttachRequest  = common.AttachRequest
	ContextHeader  = common.GetContextHeader
	ContextTracing = common.GetContextTracing
	NewContext     = common.NewContext
)
View Source
var (
	Debug   = logger.Debug
	Debugf  = logger.Debugf
	Debugfc = logger.Debugfc

	Info   = logger.Info
	Infof  = logger.Infof
	Infofc = logger.Infofc

	Warn   = logger.Warn
	Warnf  = logger.Warnf
	Warnfc = logger.Warnfc

	Error   = logger.Error
	Errorf  = logger.Errorf
	Errorfc = logger.Errorfc

	Fatal   = logger.Fatal
	Fatalf  = logger.Fatalf
	Fatalfc = logger.Fatalfc

	Panic   = logger.Fatal
	Panicf  = logger.Fatalf
	Panicfc = logger.Fatalfc
)
View Source
var (
	NewSpan            = tracer.NewSpan
	NewSpanWithContext = tracer.NewSpanWithContext
	NewSpanWithHeader  = tracer.NewSpanWithHeader
	NewSpanWithRequest = tracer.NewSpanWithRequest
)
View Source
var (
	NewTracing            = common.NewTracing
	NewTracingWithContext = common.NewTracingWithContext
	NewTracingWithHeader  = common.NewTracingWithHeader
	NewTracingWithRequest = common.NewTracingWithRequest
)

Functions

func Close

func Close()

Close 关闭日志, 此过程阻塞协程, 直到所有链路跟踪与日志上报完成.

func Config

func Config() *conf.Config

Config 取出配置 <conf.Config> 实例.

Types

type Span

type Span = common.Span

type Tracing

type Tracing = common.Tracing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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