Skip to content

Commit 319433a

Browse files
authored
Update CHANGELOG.md
1 parent 37fb844 commit 319433a

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

CHANGELOG.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
_ => EventFilter::Log,
2121
});
2222
```
23+
- feat(log): add support for logs (#841) by @lcian
24+
- To capture `log` records as Sentry structured logs, enable the `logs` feature of the `sentry` crate.
25+
- Then, initialize the SDK with `enable_logs: true` in your client options.
26+
- Finally, set up a custom event filter to map records to Sentry logs based on criteria such as severity. For example:
27+
```rust
28+
let logger = sentry::integrations::log::SentryLogger::new().filter(|md| match md.level() {
29+
log::Level::Error => LogFilter::Event,
30+
log::Level::Trace => LogFilter::Ignore,
31+
_ => LogFilter::Log,
32+
});
33+
```
2334

2435
### Fixes
2536

@@ -35,20 +46,6 @@
3546

3647
- chore(deps): upgrade `ureq` to 3.x (#835) by @algesten
3748

38-
### Features
39-
40-
- feat(log): add support for logs (#841) by @lcian
41-
- To capture `log` records as Sentry structured logs, enable the `logs` feature of the `sentry` crate.
42-
- Then, initialize the SDK with `enable_logs: true` in your client options.
43-
- Finally, set up a custom event filter to map records to Sentry logs based on criteria such as severity. For example:
44-
```rust
45-
let logger = sentry::integrations::log::SentryLogger::new().filter(|md| match md.level() {
46-
log::Level::Error => LogFilter::Event,
47-
log::Level::Trace => LogFilter::Ignore,
48-
_ => LogFilter::Log,
49-
});
50-
```
51-
5249
## 0.39.0
5350

5451
### Features

0 commit comments

Comments
 (0)