Skip to content

Commit 1b6f80b

Browse files
committed
add changelog
1 parent be42470 commit 1b6f80b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
- **feat(core): Extract objects as structured logs in `consoleLoggingIntegration`**
8+
9+
The `consoleLoggingIntegration` now extracts structured log attributes when the first argument is a plain object.
10+
11+
```js
12+
// Object keys become log attributes
13+
console.log({ userId: 123, action: 'login' }, 'User logged in');
14+
// → attributes: { userId: 123, action: "login" }
15+
16+
// Non-object first args use template + parameters (unchanged)
17+
console.log('Hello', 'world', 123);
18+
// → sentry.message.template: "Hello {} {}"
19+
```
20+
721
## 10.57.0
822

923
### Important Changes

0 commit comments

Comments
 (0)