Function rs2_enable_rolling_log_file

Function Documentation

void rs2_enable_rolling_log_file(unsigned max_size, rs2_error **error)

Enable rolling log file when used with rs2_log_to_file: Upon reaching (max_size/2) bytes, the log will be renamed with an “.old” suffix and a new log created. Any previous .old file will be erased. Must have permissions to remove/rename files in log file directory.

Parameters:
  • max_size[in] max file size in megabytes

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored