log

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package log provide global singleton object access

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.SugaredLogger
)

Functions

func Debug

func Debug(ctx context.Context, tpl string, args ...interface{})

Debug 增加了记录trace id

func Error

func Error(ctx context.Context, tpl string, args ...interface{})

Error 增加了记录trace id

func FlushLogger

func FlushLogger()

func Info

func Info(ctx context.Context, tpl string, args ...interface{})

Info 增加了记录trace id

func SetLevel

func SetLevel(mode ...string)

func Warn

func Warn(ctx context.Context, tpl string, args ...interface{})

Warn 增加了记录trace id

Types

This section is empty.

Jump to

Keyboard shortcuts

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