internal

package
v0.0.0-...-a45afdf Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileRotatelogs = new(fileRotatelogs)
View Source
var Zap = new(_zap)

Functions

This section is empty.

Types

type Cutter

type Cutter struct {
	Director string // 日志文件夹
	// contains filtered or unexported fields
}

func NewCutter

func NewCutter(director string, level string, options ...CutterOption) *Cutter

NewCutter 创建新的日志切割器

func (*Cutter) Write

func (c *Cutter) Write(bytes []byte) (n int, err error)

Write 实现 io.Writer 接口,负责写入日志并进行日志文件切割

type CutterOption

type CutterOption func(*Cutter)

func WithCutterFormat

func WithCutterFormat(format string) CutterOption

WithCutterFormat 设置时间格式

Jump to

Keyboard shortcuts

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