Torch Log Service
Parameter | Type | Example | Description |
Parameter | Type | Example | Description |
MaxFetchLogGroupCount | Integer | 100 | The maximum number of log groups when the consumer consumes log data each time. Default value: 100. Maximum value: 1000. |
HeartbeatIntervalInSecond | Integer | 20 | The interval at which the consumer reports a heartbeat. Unit: seconds. |
DataFetchIntervalInMillisecond | Integer | 200 | The interval at which the consumer consumes log data. Unit: milliseconds. |
FlushCheckpointIntervalSecond | Integer | 5 | The interval at which the consumer uploads the consumption progress. Unit: seconds. |
ConsumeFrom | String | begin | The default consumer offset when the consumption starts. The value is consistent with that of From in the DescribeCursor API action. The parameter takes effect only when the consumer has not uploaded consumer offsets. |
OrderedConsume | Boolean | false | Whether to enable consumption in sequence. If enabled, the consumer consumes log data based on the parent-child relationship of shard splitting. For example, Shard 0 is split into Shard 1 and Shard 2, while Shard 1 is then split into Shard 3 and Shard 4. If the feature is enabled, log data is consumed in the sequence of (Shard 0) > (Shard 1, Shard 2) > (Shard 2, Shard 3, Shard 4). |
LoggerConfig | LoggerConfig | / | For information on log configurations, refer to the following table. |
Parameter | Type | Example | Description |
Parameter | Type | Example | Description |
LogLevel | String | info | The log output level. Default value: info. For consumers, four log output levels exist: debug, info, warn, and error. |
LogFileName | String | 50 | The output path of the log file. If not specified, the log file is output to stdout by default. |
IsJsonType | Boolean | false | Whether to format the file output. Default value: false. |
LogMaxSize | Integer | 10 | The maximum size of a single log file. Default value: 10 MiB. |
LogCompress | Boolean | false | Whether to enable log compression. |