Socket
Socket
Sign inDemoInstall

@pnpm/logger

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/logger

Logger for pnpm


Version published
Weekly downloads
240K
decreased by-14.38%
Maintainers
3
Weekly downloads
 
Created

What is @pnpm/logger?

@pnpm/logger is a logging utility designed for use with the pnpm package manager. It provides a structured way to log messages with different levels of severity and categories, making it easier to track and debug issues in pnpm-related projects.

What are @pnpm/logger's main functionalities?

Basic Logging

This feature allows you to log messages with different levels of severity such as info, warn, and error.

const logger = require('@pnpm/logger')('my-logger');
logger.info({ message: 'This is an info message' });
logger.warn({ message: 'This is a warning message' });
logger.error({ message: 'This is an error message' });

Custom Loggers

You can create custom loggers with specific namespaces to better organize your logging output.

const logger = require('@pnpm/logger');
const customLogger = logger('custom-namespace');
customLogger.info({ message: 'This is a custom info message' });

Structured Logging

This feature allows you to log structured data, making it easier to filter and analyze logs.

const logger = require('@pnpm/logger')('structured-logger');
logger.info({ event: 'user_signup', userId: 12345, message: 'User signed up successfully' });

Other packages similar to @pnpm/logger

Keywords

FAQs

Package last updated on 19 Nov 2020

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc