Skip to content

Commit e0208ac

Browse files
authored
fix(flutter): Update logs snippet (#13781)
Updates snippets since currently attributes with hyphens cant be filtered so let's not make it harder for the user to figure out why and give them a snippet with immediate success
1 parent 7941161 commit e0208ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

platform-includes/logs/usage/dart.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ You can pass additional attributes directly to the logging functions. These prop
77
```dart
88
Sentry.logger.info("A simple log message");
99
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
10-
'string-attribute': SentryLogAttribute.string('string'),
11-
'int-attribute': SentryLogAttribute.int(1),
12-
'double-attribute': SentryLogAttribute.double(1.0),
13-
'bool-attribute': SentryLogAttribute.bool(true),
10+
'attribute1': SentryLogAttribute.string('string'),
11+
'attribute2': SentryLogAttribute.int(1),
12+
'attribute3': SentryLogAttribute.double(1.0),
13+
'attribute4': SentryLogAttribute.bool(true),
1414
});
1515
```

0 commit comments

Comments
 (0)