Documentation
¶
Index ¶
Constants ¶
View Source
const CompressSuffix = ".gz"
CompressSuffix the suffix of compressed file.
Variables ¶
This section is empty.
Functions ¶
func AddSuffix2path ¶
AddSuffix2path add suffix to file path.
eg: "/path/to/error.log" => "/path/to/error.{suffix}.log"
func BuildGlobPattern ¶
BuildGlobPattern builds a glob pattern for the given logfile. NOTE: use for testing only.
func CompressFile ¶ added in v0.2.0
CompressFile compress the src file to dst file by gzip.
func PrintErrln ¶ added in v0.2.0
PrintErrln print error to stderr with a prefix when err is not nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.