logx

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 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 Field

type Field struct {
	Key   string
	Value any
}

func Any

func Any(key string, val any) Field

func Bool

func Bool(key string, val bool) Field

func Error

func Error(err error) Field

func Float32

func Float32(key string, val float32) Field

func Float64

func Float64(key string, val float64) Field

func Int

func Int(key string, val int) Field

func Int8

func Int8(key string, val int8) Field

func Int16

func Int16(key string, val int16) Field

func Int32

func Int32(key string, val int32) Field

func Int64

func Int64(key string, val int64) Field

func String

func String(key string, val string) Field

func TimeDuration

func TimeDuration(key string, val time.Duration) Field

func TimeTime

func TimeTime(key string, val time.Time) Field

func Uint

func Uint(key string, val uint) Field

func Uint8

func Uint8(key string, val uint8) Field

func Uint16

func Uint16(key string, val uint16) Field

func Uint32

func Uint32(key string, val uint32) Field

func Uint64

func Uint64(key string, val uint64) Field

type Loggerx

type Loggerx interface {
	Debug(msg string, fields ...Field)
	Info(msg string, fields ...Field)
	Warn(msg string, fields ...Field)
	Error(msg string, fields ...Field)
}

Loggerx 接口(依赖抽象)

Directories

Path Synopsis
Package logxmocks is a generated GoMock package.
Package logxmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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