Documentation
¶
Overview ¶
* rotate package provides a very simple tool to truncate a given file to 0 after it copies the last *configurable* part of this file to a new file with suffix .tail
The idea is that services need to have their log files (or redirection) be open in append mode. So truncation of the log file should be enough.
There is no grantee that some logs will be lost between the copying of the file tail and the truncation of the file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func MaxSize ¶
MaxSize of the file maximum size. If file size is bigger than this value, it will be truncated. Default to 20MB
Click to show internal directories.
Click to hide internal directories.