rolling_file: Rolls the file based on parameters

View source: R/logging.r

rolling_fileR Documentation

Rolls the file based on parameters

Description

Rolling of a file is based on the following conditions

  • file is bigger than a given size

  • number of rolling files are bigger than

Usage

rolling_file(filename, max_size, max_files, lock_file)

Arguments

filename

path of the logging file

max_size

size in bytes before rolling (defaults 10Mb)

max_files

number of files to keep (defaults 5)

lock_file

lock file to prevent access to lock during rolling


giupo/rutils documentation built on Sept. 18, 2022, 6:30 a.m.