logger

package
v0.0.0-...-f0a7105 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 7 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 create a new logger

func NewLoggerProvider

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

NewLoggerProvider create new logger provider

func NewStdLogger

func NewStdLogger() log.Logger

NewStdLogger create a new logger - Kratos built-in, console output

Types

type Type

type Type string
const (
	Std    Type = "std"
	Logrus Type = "logrus"
	Zap    Type = "zap"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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