logger

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName plugin name
	PluginName = "HistoryLogger"
)

把操作记录记录到日志文件中

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoryLogger

type HistoryLogger struct {
}

HistoryLogger 历史记录logger

func (*HistoryLogger) Destroy

func (h *HistoryLogger) Destroy() error

Destroy 销毁插件

func (*HistoryLogger) Initialize

func (h *HistoryLogger) Initialize(c *plugin.ConfigEntry) error

Initialize 插件初始化

func (*HistoryLogger) Name

func (h *HistoryLogger) Name() string

Name 返回插件名字

func (*HistoryLogger) Record

func (h *HistoryLogger) Record(entry *model.RecordEntry)

Record 记录操作记录到日志中

Jump to

Keyboard shortcuts

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