18 lines
546 B
Plaintext
18 lines
546 B
Plaintext
|
rem Sample configuration file for logrotatew
|
||
|
|
||
|
rem Comments start with "rem", obviously
|
||
|
|
||
|
rem Optional command to compress rotated logs
|
||
|
compresscmd gzip
|
||
|
|
||
|
rem Extension that compressed files will have; "compressext" is required if you use "compresscmd"
|
||
|
compressext gz
|
||
|
|
||
|
rem Optional command line arguments for the compression command; uncomment if necessary
|
||
|
rem compressoptions -v
|
||
|
|
||
|
rem Rotate c:\temp\test.log, keeping 5 generations
|
||
|
c:\temp\test.log 5
|
||
|
|
||
|
rem Compress all files matching *.log in c:\temp\logs, keeping 5 generations
|
||
|
c:\temp\logs\*.log 5
|