powered by
Truncates the log file to the line count provided as rotate_lines.
rotate_lines
rotate_logs(rotate_lines = 100000L, logfile = get_logfile())
Invisible NULL.
NULL
The number of log entries to keep in the logfile.
Log file to truncate.
if (FALSE) { rotate_logs() rotate_logs(rotate_lines = 0L) rotate_logs(rotate_lines = 1000L, logfile = "my_log.log") }
Run the code above in your browser using DataLab