Socket
Book a DemoInstallSign in
Socket

@nody-org/logger

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nody-org/logger

All-in-one, production-ready logger

1.4.0
latest
npmnpm
Version published
Weekly downloads
1
-96.43%
Maintainers
1
Weekly downloads
 
Created
Source

Nody Logger

Description

All-in-one, production-ready logger

How to install

// to install with yarn
yarn add @nody-org/logger

// to install with npm
npm install @nody-org/logger

How to use

import { Logger, ConsoleIntegration } from '@nody-org/logger'

const logger = new Logger()

// add your chosen integrations
logger.addIntegration(new ConsoleIntegration({
    level: 'debug',
}));

// this context is always added to the logs meta
logger.setContext({
    appName: '{{appName}}',
    sessionId: '{{sessionId}}'
});

logger.debug('==> your message', {
    anyKey: 'any-value',
});

Feel free to collaborate!

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.