You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the new Logging APIs to send application logs directly to Sentry, you'll have to upgrade to 9.0.0-RC.3 of the Sentry Dart/Flutter SDK or higher.
Then you can use methods from the Sentry.logger namespace to send logs to Sentry.
Sentry.logger.info("This is a info log.");
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
'attribute1':SentryLogAttribute.string('string'),
'attribute2':SentryLogAttribute.int(1),
'attribute3':SentryLogAttribute.double(1.0),
'attribute4':SentryLogAttribute.bool(true),
});
Note
We do not support any integrations yet. So far we only expose the manual API.
What's next:
We are currently planning on integrating string templating with the printf format.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To use the new Logging APIs to send application logs directly to Sentry, you'll have to upgrade to
9.0.0-RC.3
of the Sentry Dart/Flutter SDK or higher.Logging is gated by an option,
enableLogs
.Then you can use methods from the
Sentry.logger
namespace to send logs to Sentry.Note
We do not support any integrations yet. So far we only expose the manual API.
What's next:
We are currently planning on integrating string templating with the printf format.
Beta Was this translation helpful? Give feedback.
All reactions