log

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRecordItem

type FileRecordItem struct {
	Status   string `json:"status"`
	TimeStr  string `json:"timeStr"`
	FileSize int64  `json:"fileSize"`
	FilePath string `json:"filePath"`
}

type FileRecorder

type FileRecorder struct {
	Path string `json:"path"`
	// contains filtered or unexported fields
}

func NewFileRecorder

func NewFileRecorder(filePath string) *FileRecorder

NewFileRecorder 创建文件记录器

func (*FileRecorder) Append

func (f *FileRecorder) Append(item *FileRecordItem) error

Append 增加数据记录

Jump to

Keyboard shortcuts

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