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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields map[string]any

变量

type Logger

type Logger struct {
	// 日志驱动
	Driver interfaces.Driver
}

*

  • 日志 *
  • import "github.com/deatil/lakego-doak/lakego/logger" *
  • @create 2021-11-3
  • @author deatil

func New

func New(driver interfaces.Driver) *Logger

构造方法

func (*Logger) Debug

func (this *Logger) Debug(args ...any)

func (*Logger) Debugf

func (this *Logger) Debugf(template string, args ...any)

func (*Logger) Error

func (this *Logger) Error(args ...any)

func (*Logger) Errorf

func (this *Logger) Errorf(template string, args ...any)

func (*Logger) Fatal

func (this *Logger) Fatal(args ...any)

func (*Logger) Fatalf

func (this *Logger) Fatalf(template string, args ...any)

func (*Logger) GetDriver

func (this *Logger) GetDriver() interfaces.Driver

获取驱动

func (*Logger) Info

func (this *Logger) Info(args ...any)

func (*Logger) Infof

func (this *Logger) Infof(template string, args ...any)

func (*Logger) Panic

func (this *Logger) Panic(args ...any)

func (*Logger) Panicf

func (this *Logger) Panicf(template string, args ...any)

func (*Logger) Trace

func (this *Logger) Trace(args ...any)

func (*Logger) Tracef

func (this *Logger) Tracef(template string, args ...any)

func (*Logger) Warn

func (this *Logger) Warn(args ...any)

func (*Logger) Warnf

func (this *Logger) Warnf(template string, args ...any)

func (*Logger) Warning

func (this *Logger) Warning(args ...any)

func (*Logger) Warningf

func (this *Logger) Warningf(template string, args ...any)

func (*Logger) WithDriver

func (this *Logger) WithDriver(driver interfaces.Driver) *Logger

设置驱动

func (*Logger) WithField

func (this *Logger) WithField(key string, value any) any

设置自定义变量

func (*Logger) WithFields

func (this *Logger) WithFields(fields map[string]any) any

批量设置自定义变量

Directories

Path Synopsis
driver

Jump to

Keyboard shortcuts

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