# Functions
日志信息.
ForceNewFile ensures a new file is created every time New() is called.
按天切割按大小切割 filename 文件名 rotationSize 每个文件的大小 maxAge 文件最大保留天数 rotationCount 最大保留文件个数 rotationTime 设置文件分割时间 rotationCount 设置保留的最大文件数量.
日志信息.
No description provided by the author
New creates a new RotateLogs object.
设置环境类型.
设置文件总数.
设置文件路径.
日志扩展字段.
日志扩展字段不会追加 采用覆盖.
日志最大保留的天数.
设置单个文件大小(大小限制).
设置保留的最大文件数量、没有默认值(表示不限制).
日志信息.
WithClock creates a new Option that sets a clock that the RotateLogs object will use to determine the current time.
WithHandler creates a new Option that specifies the Handler object that gets invoked when an event occurs.
WithLinkName creates a new Option that sets the symbolic link name that gets linked to the current file name being used.
WithLocation creates a new Option that sets up a "Clock" interface that the RotateLogs object will use to determine the current time.
WithMaxAge creates a new Option that sets the max age of a log file before it gets purged from the file system.
WithRotationCount creates a new Option that sets the number of files should be kept before it gets purged from the file system.
WithRotationSize creates a new Option that sets the log file size between rotation.
WithRotationTime creates a new Option that sets the time between rotation.
# Constants
默认的开发环境.
0:为不限制.
日志路径.
32兆.
日志分割符 msg:"信息1 信息2".
No description provided by the author
No description provided by the author
No description provided by the author
错误级别.
No description provided by the author
# Structs
No description provided by the author
RotateLogs represents a log file that gets automatically rotated as you write to it.
# Type aliases
No description provided by the author
No description provided by the author
配置回调.