---
title: LogRotateByNumbers
description: "记录一定个数的数据。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0505.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0505.html
indexId: 4903709d5eb1edb1bc90e266a8dce0c39d5942d21f66c62721f033350432278e102
---
# LogRotateByNumbers

#### 函数功能

记录一定个数的数据。


#### 函数原型

```
static void Log::LogRotateByNumbers(int fileNumbers);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| fileNumbers | 输入 | 设置记录文件数量，取值范围为大于0的整数。 |
