npm.io
1.1.0 • Published 4 months ago

@govuk-one-login/cri-logger

Licence
MIT
Version
1.1.0
Deps
0
Size
43 kB
Vulns
0
Weekly
0

@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.

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.

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.