internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 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

func (*Cutter) Write

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

Write satisfies the io.Writer interface. It writes to the appropriate file handle that is currently being used. If we have reached rotation time, the target file gets automatically rotated, and also purged if necessary.

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