aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2019-02-28 20:49:08 +0100
committerSiri Hansen <[email protected]>2019-03-08 09:35:34 +0100
commit56cacefda4f18c8fdc45839b6bec1d07d0d2d78e (patch)
tree63bf8d0393b4d8d683f271542cafcf7f931bd3ac /.gitattributes
parente03c2bd640e1fc1503e92dfd74991f4205973c61 (diff)
downloadotp-56cacefda4f18c8fdc45839b6bec1d07d0d2d78e.tar.gz
otp-56cacefda4f18c8fdc45839b6bec1d07d0d2d78e.tar.bz2
otp-56cacefda4f18c8fdc45839b6bec1d07d0d2d78e.zip
[logger] Add log file rotation by options to logger_std_h
OTP-15479 OTP-15662 New configuration map for logger_std_h: #{type => file, file => file:filename(), modes => [file:mode()], max_no_bytes => pos_integer() | infinity, max_no_files => non_neg_integer(), compress_on_rotate => boolean()} For backwards compatibility, the old variant for specifying the file name via the 'type' parameter is still supported, i.e. {file,FileName} and {file,FileName,Modes}, but it is no longer documented. Rotation scheme: The current log file always has the same name, and the archived files get extensions ".0", ".1", ... The newest archive has extension ".0", and the oldest archive has the highest number. If 'compress_on_rotate' is set to true, the archived files are gzipped and get the additional extension ".gz", e.g. error.log.0.gz. Rotation is turned off by setting 'max_no_bytes' to infinity. Setting 'max_no_files' to 0 does not turn off rotation, but only specifies that no archives are to be saved.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions