Socket
Socket
Sign inDemoInstall

@blocklet/logger

Package Overview
Dependencies
1
Maintainers
2
Versions
417
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blocklet/logger

A library to facilitate Blocklet logging


Version published
Weekly downloads
662
increased by81.87%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Blocklet logger

A library to facilitate Blocklet logging.

Usage

const logger = require('@blocklet/logger');

// log
log = logger('demo');
log.info('this is demo', { id: 'test-id' });
log.warn('this is demo', { id: 'test-id' });
log.error('this is demo', { id: 'test-id' });
log.debug('this is demo', { id: 'test-id' });

// access log
app.use(morgan('combined', { stream: logger.getAccessLogStream() }));

Keywords

FAQs

Last updated on 27 Apr 2024

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