Skip to content
pubscout

aws_cloudwatch

2.1.0, released 8 months ago by an unverified publisher

Lightweight client for logging to AWS CloudWatch with automatic log group and stream creation.

WASM-ready
$ flutter pub add aws_cloudwatch
Source repository

What it does

Allows Flutter and Dart applications to send logs and error messages directly to AWS CloudWatch. It automatically handles log group and stream creation, supports temporary credentials, and provides configurable batching and error retries.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to centralize application logs and error reporting in AWS CloudWatch.
  • You want automatic creation of log groups and streams without manual AWS console setup.

Skip it when

  • You require a backend crash reporting tool like Sentry or Firebase Crashlytics instead of raw log storage.
  • You are not using AWS CloudWatch for log management.

Strengths

  • Automatically creates missing log groups and log streams on the fly.
  • Supports multiple log groups and streams via CloudWatchHandler.
  • Handles temporary credentials and supports runtime credential updates.

Weaknesses

  • Exposes AWS access and secret keys directly in client code if temporary credentials or secure stores are not used.
  • Lacks native rich UI crash reporting dashboards compared to dedicated crash-reporting platforms.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

Requires AWS credentials with CloudWatch Logs permissions. On Android, you must add the internet permission to AndroidManifest.xml.

import 'package:aws_cloudwatch/aws_cloudwatch.dart';

CloudWatch cloudWatch = CloudWatch(
  awsAccessKey: 'YOUR_ACCESS_KEY',
  awsSecretKey: 'YOUR_SECRET_KEY',
  region: 'us-west-2',
  groupName: 'MyLogGroup',
  streamName: 'MyLogStream',
);

void logHelloWorld() {
  cloudWatch.log('Hello World!');
}

Alternatives

Packages that do the same job and could replace aws_cloudwatch.

  • f_logs

    Advanced logging framework that saves logs to a database and exports them in files or zip archives.

Works with

Packages commonly used together with aws_cloudwatch: ones it builds on, ones built on it, and its own family.