info method

  1. @override
void info(
  1. String message, {
  2. Map<String, Object?>? extras,
})
override

Logs an informational message with optional structured metadata.

Info messages record general application events and state changes that are useful for monitoring normal operation, such as successful API calls or order completions.

The message describes the event. The optional extras map may include relevant context such as order identifiers or depot codes.

Example:

logger.info(
  'Order placed successfully',
  extras: {'orderId': '456', 'depotCode': 'D001'},
);

Implementation

@override
void info(String message, {Map<String, Object?>? extras}) {
  _breadcrumb(message, level: SentryLevel.info, category: 'app.info', extras: extras);
  if (kDebugMode) debugPrint('ℹ️ $message');
}