logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(cfg *conf.Logger) log.Logger

NewLogger 创建一个新的日志记录器

func NewLoggerProvider

func NewLoggerProvider(cfg *conf.Logger, serviceInfo *config.ServiceInfo) log.Logger

NewLoggerProvider 创建一个新的日志记录器提供者

func NewStdLogger

func NewStdLogger() log.Logger

NewStdLogger 创建一个新的日志记录器 - Kratos内置,控制台输出

Types

type Type

type Type string
const (
	Std     Type = "std"
	Fluent  Type = "fluent"
	Logrus  Type = "logrus"
	Zap     Type = "zap"
	Aliyun  Type = "aliyun"
	Tencent Type = "tencent"
)

Directories

Path Synopsis
aliyun module
fluent module
logrus module
tencent module
zap module

Jump to

Keyboard shortcuts

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