logger

package
v1.0.1006 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default *logger.Logger

默认

Functions

func GetDefaultDriver

func GetDefaultDriver() string

默认驱动

func LogrusWithField

func LogrusWithField(log *logger.Logger, key string, value any) *logrusDriver.Entry

自定义数据 import "github.com/deatil/lakego-doak/lakego/facade/logger" logger.LogrusWithField(logger.New(), "system", "lakego").Info("logger test")

func LogrusWithFields

func LogrusWithFields(log *logger.Logger, fields map[string]any) *logrusDriver.Entry

批量自定义数据

func New

func New(once ...bool) *logger.Logger

*

  • 验证码 *
  • @create 2021-10-12
  • @author deatil

func NewLogger

func NewLogger(driverName string, once ...bool) *logger.Logger

验证码

Types

This section is empty.

Jump to

Keyboard shortcuts

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