npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aws-logger-adapter

v1.0.7

Published

Adapter for @aws-lambda-powertools/logger with external configuration option and logger instance provider

Readme

AWS Logger Adapter

Adapter for @aws-lambda-powertools/logger with external configuration option and logger instance provider. How to use @aws-lambda-powertools/logger read here: https://www.npmjs.com/package/@aws-lambda-powertools/logger

Installation

To install the package, use npm:

npm install aws-logger-adapter

Usage

Importing the Logger

You can import the logger instance using the getLogger function:

import { getLogger } from "aws-logger-adapter";

const logger = getLogger();  // gets the instance of `@aws-lambda-powertools/logger` 
logger.info("This is an info message");  

You can provide optional attributes to include in the logger:


const logger = getLogger({"key": "value"});  
 

These attributes will be included in every log message of this logger instance. If no attributes provided, the single logger instance is reused across all modules.

Configuration

Create a logger.config.json file in the root of your project to configure the logger. Example:

The logger can be configured using a logger.config.json file. Create the file and place it in the root directory of your project. To completely exclude a key from the log output, set the value to null in maskedKeys object. To override a key's value in the log, set it to the desired value in maskedKeys object.

{
  "prettyPrint": false,
  "maskedKeys": {
    "sampling_rate": null,
    "service": null,
    "user": "*** hidden by logger ***",
    "password": "*** hidden by logger ***",
    "long_list_of_objects": "*** omitted by logger ***",
    "big_json_object": "*** omitted by logger ***"
  },
  "globalAttributes": {
    "project": "my-project",
    "foo": "bar"
  }
}

You can enable pretty format of json logs when working locally by setting "prettyPrint": true (it's not recomended to use pretty format in real environment)

Dependencies

  • @aws-lambda-powertools/logger: ^2.14.0

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Alex Ivanov - [email protected]