logrotate

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 14 Imported by: 1

README

简介

日志分割插件,带UI界面,可以实时查看日志输出,和日志查询 日志查询暂时只支持linux系统

插件名称

LogRotate

配置

[LogRotate]
Path = "log"
Size = 0
Days = 1

其中Path代表生成日志的目录 Size代表按大小分割,单位是字节,如果为0,则按时间分割 Days代表按时间分割,单位是天,即24小时

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Name string
	Size int64
}

type LogRotate

type LogRotate struct {
	Path string
	Size int64
	Days int
	// contains filtered or unexported fields
}

func (*LogRotate) Write

func (l *LogRotate) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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