Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressProvider ¶
CompressProvider will decorate writer.Provider with compression
func LogFileProvider ¶
LogFileProvider creates one static file with the given name and format if the file name already exists, it renames it with the time and create a new static file
ex: LogFileProvider("dev", os.TempDir()+"/my_app_%s.log", "2006-01-02") will create a file named "/tmp/my_app_dev.log" and each time the provider is called, it will backup the current "/tmp/dev.log" to "/tmp/my_app_2006-01-02.log"
func TimeFileProvider ¶
TimeFileProvider provide a new file (io.Writer) having named with a given filename format ex: `provider.TimeFileProvider("fake_format_%s", "2006-01-02")` will create a file named "fake_format_2019-08-17" (i.e fake_format_<ISO_8601_DATE>)
Types ¶
This section is empty.