Skip to content

Amazon CloudWatch Logs SDK

Grow Codes CI License

One API for Amazon CloudWatch Logs in five languages: TypeScript, Rust, Go, Python and Java. Every package has the same functions, options, defaults, error codes and behaviour, is built on the official AWS SDK of its language and is tested against the motoserver/moto:5.2.4 AWS emulator in Docker.

Language Package Coverage
TypeScript @grow-codes/aws-cloudwatch-logs TypeScript coverage
Rust grow-aws-cloudwatch-logs Rust coverage
Go github.com/grow-codes-packages/aws-cloudwatch-logs/go Go coverage
Python grow-aws-cloudwatch-logs Python coverage
Java codes.grow.packages:aws-cloudwatch-logs Java coverage

What you get

  • Client with health, authenticated ping and server version (Client).
  • Configuration from code or GROW_AWS_CLOUDWATCH_LOGS_* / vendor environment variables, immutable and validated (Configuration).
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts and cancellation in every language.
  • Typed errors with one set of codes across languages (Error handling).
  • Redaction everywhere: credentials never appear in errors, logs, hooks or toString (Redaction).
  • Logging: batching log client, logger facade, redaction processor, framework adapters and log search (Logging).
  • Service functions for the Amazon CloudWatch Logs API (Functions): idempotent log group and stream setup, retention and tags, putLogEvents batching within the service limits, Embedded Metric Format, filterLogEvents / getLogEvents, Logs Insights queries and live tail.

Start with Install and the Quickstart.

Independent project

This SDK is made by Grow Codes. Amazon CloudWatch Logs is a trademark of its owner (Amazon.com, Inc. or its affiliates); this project is not affiliated with or endorsed by it. See License & disclaimer.