add set_file_size api to limit the log file size