entry

package
v0.0.0-...-206fc92 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Level   level.Level   // 日志等级
	Time    time.Time     // 触发时间
	Message string        // 日志内容
	Fields  []field.Field // 补充字段
	// contains filtered or unexported fields
}

Entry 定义日志条目的数据结构

func New

func New(call int32, level level.Level, msg string, fields ...field.Field) *Entry

New 新建一条日志

func (*Entry) Dealloc

func (own *Entry) Dealloc()

Dealloc 回收 Entry,以备复用

Jump to

Keyboard shortcuts

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