Socket
Socket
Sign inDemoInstall

@eucalyptusvc/pino-logger

Package Overview
Dependencies
2
Maintainers
7
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @eucalyptusvc/pino-logger

Pino logger wrapper for euc applications.


Version published
Maintainers
7
Created

Readme

Source

@eucalyptusvc/pino-logger

Pino logger wrapper for euc applications.

Install

With yarn:

yarn add @eucalyptusvc/pino-logger

With npm:

npm install @eucalyptusvc/pino-logger

Usage

import pinoLogger from '@eucalyptusvc/pino-logger';

const logger = pinoLogger();

logger.info('hello world');

const child = logger.child({ a: 'property' });
child.info('hello child!');

Default options

// Pino.Logger Options

const pinoOptions = {
  redact: {
    paths: ['args.password'],
    censor: '**REMOVING_PASSWORD**',
  },
  level: process.env.NODE_ENV === 'development' || !process.env.NODE_ENV ? 'debug' : 'info',
};

const infoProps = {
  environment: process.env.ENVIRONMENT,
  application: process.env.APPLICATION,
};

Development

  1. Install dependencies using yarn install or npm install
  2. Start development server using yarn watch

FAQs

Last updated on 12 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc