Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@8select/strulo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8select/strulo

Log messages in a structured format.

  • 0.1.2
  • dev
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

strulo

Log messages in a structured format

Install

using NPM

npm install --save strulo

How to use it

const logger = require('strulo')
logger.debug('hello')
logger.info('hello from strulo')
logger.error('some error')

The DEBUG environment variable is used to enable these based on space or comma-delimited names. Here are some examples:

export DEBUG=DEBUG,ERROR,ALERT

displays only log messages with log level debug, error and alert

DEBUG {"message":"hello","level":"100","level_name":"DEBUG","time":1506502514498} +0ms

ERROR {"message":"some error","level":"400","level_name":"ERROR","time":1506502554430} +40s

Keywords

FAQs

Package last updated on 27 Sep 2017

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