module Rotation:sig
..end
type
t = {
|
messages : |
|
size : |
|
time : |
|
keep : |
|
naming_scheme : |
If all fields are None
the file will never be rotated. Any field set to Some
will cause rotation to happen when that boundary is crossed. Multiple boundaries
may be set. Log rotation always causses incrementing rotation conditions
(e.g. size) to reset.
The condition keep
is special and does not follow the rules above. When a log is
rotated keep
is examined and logs that do not fall under its instructions are
deleted. This deletion takes place on rotation only, and so may not happen. The
meaning of keep options are:
`All
-- never delete`Newer_than span
--
delete files with a timestamp older than Time.sub (Time.now ()) span
. This
normally means keeping files that contain at least one message logged within
span. If span is short enough this option can delete a just rotated file.`At_least i
-- keep the i most recent filesval t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t