New LOG_ EVENT_ LEVEL parameter to control events¶
Attention
This behavior change is in the 2026_02 bundle.
For the current status of the bundle, refer to Bundle history.
我们引入了一个新参数 LOG_EVENT_LEVEL,以控制写入事件表的遥测事件的详细程度。
- Before the change:
LOG_LEVEL 参数控制以下内容的详细程度:
- 使用日志记录 APIs 生成的日志。
- 遥测事件(记录类型 = EVENT)。
- After the change:
LOG_LEVEL 控制日志记录 API 生成的日志。
LOG_EVENT_LEVEL 控制遥测事件(例如 Snowpipe、任务、动态表、SPCS 计算池、Iceberg 和数据治理标签事件)。
LOG_EVENT_LEVEL supports the same log levels as LOG_LEVEL.
向后兼容
为保留现有行为,LOG_EVENT_LEVEL 初始化为与 LOG_LEVEL 相同的值。
启用捆绑包后,这两个参数独立运行。
新权限
引入了两个新权限来控制设置 LOG_EVENT_LEVEL:
- MODIFY LOG EVENT LEVEL
- MODIFY SESSION LOG EVENT LEVEL
只有被授予这些权限的用户才能修改 LOG_EVENT_LEVEL。
参考:2229