Skip to content

AlienCreations/node-logger

Repository files navigation

node-logger

Simple NodeJS logger using Pino.

Install

$ yarn add @aliencreations/node-logger

Usage

Please refer to the pino documentation for the optionalPinoConfig referenced below.

const applicationMetaData = { 
  appName       : config.appName, 
  someOtherMeta : 'goes here' 
};

const optionalPinoConfig = {
  redact : ['key', 'path.to.key', 'stuff.thats[*].secret']
};

const logger = require('@aliencreations/node-logger')(applicationMetaData, optionalPinoConfig);

logger.info('some log here');

Changelog

1.0.0
  • Initial commit.

About

Simple logging wrapper for Pinoo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published