# @govuk-one-login/cri-logger

> This package initialises and exports an instance of the AWS Lambda Powertools logger. For more information on the logger, see [their documentation](https://www.npmjs.com/package/@aws-lambda-powertools/logger).

Latest version **1.1.0** (published 2026-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @govuk-one-login/cri-logger
pnpm add @govuk-one-login/cri-logger
yarn add @govuk-one-login/cri-logger
bun add @govuk-one-login/cri-logger
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2026-06-04 |
| First published | 2025-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 43.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Maintainers | pcornishgds, nickheal-gds, merlinc, wilsondrrn, sambunce-gds, danielmason-gds, alexws-gds, coral_gds, dancorder, ug-gds, davidmcmichaelgovuk, mike.beeby |

## Links

- npm: https://www.npmjs.com/package/@govuk-one-login/cri-logger
- Repository: https://github.com/govuk-one-login/ipv-cri-ts-common
- Homepage: https://github.com/govuk-one-login/ipv-cri-ts-common#readme
- Issues: https://github.com/govuk-one-login/ipv-cri-ts-common/issues
- npm.io page: https://npm.io/package/@govuk-one-login/cri-logger

## Recent versions

- 1.1.0 (latest) — 2026-06-04
- 1.0.1 — 2026-02-04
- 1.0.0 — 2025-12-23
- 0.2.0 — 2025-12-22
- 0.1.0 — 2025-12-18
- 0.0.0 — 2025-12-15

## README

# `@govuk-one-login/cri-logger`

This package initialises and exports an instance of the AWS Lambda Powertools logger. For more information on the
logger, see [their documentation](https://www.npmjs.com/package/@aws-lambda-powertools/logger).

The logger is imported by other `@govuk-one-login/cri-[suffix]` utility modules, so this package is recommended as it
allows us to create a single shared instance of the logger for CRI runtimes. This means that information saved to the
logger's context in your consuming code (such as the journey ID and Lambda cold start state) will appear in logs inside
common CRI modules too.

Further information, changelog and source code can be found in the
[GitHub repository](https://github.com/govuk-one-login/ipv-cri-ts-common/blob/main/packages/cri-logger).

## Module syntax

This module is currently built to both CJS and ESM standards, so should work universally. However, we expect be moving
to ESM-only in the near future.

---
_Source: https://npm.io/package/@govuk-one-login/cri-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
