log

package
v0.0.0-...-73eff08 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func New

func New(pathName, fileName string, maxAgeHours, maxFileSizeMegabytes uint) (*Log, error)

New 新建一个日志 pathName - 日志目录 fileName - 文件名称 maxAgeHours - 最大生命周期(小时) maxFileSizeMegabytes - 文件超过多大开始流转(MB)

func (*Log) Printf

func (l *Log) Printf(format string, v ...interface{})

Printf 打印日志(线程安全)

Jump to

Keyboard shortcuts

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