Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions platform-includes/logs/usage/dart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ You can pass additional attributes directly to the logging functions. These prop
```dart
Sentry.logger.info("A simple log message");
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
'string-attribute': SentryLogAttribute.string('string'),
'int-attribute': SentryLogAttribute.int(1),
'double-attribute': SentryLogAttribute.double(1.0),
'bool-attribute': SentryLogAttribute.bool(true),
'attribute1': SentryLogAttribute.string('string'),
'attribute2': SentryLogAttribute.int(1),
'attribute3': SentryLogAttribute.double(1.0),
'attribute4': SentryLogAttribute.bool(true),
});
```