获取更多动态,关注公众号:黑客下午茶
Set the Level
level — 类似于日志级别 — 通常是根据集成(integration
)默认添加的。您还可以在事件中重写它。
Copied
Sentry\configureScope(function (Sentry\State\Scope $scope): void {
$scope->setLevel(Sentry\Severity::warning());
});
You can edit this page on GitHub.
- Package:
- composer:sentry/sentry
- Version:
- 3.1.3
- Repository:
- https://github.com/getsentry/sentry-php