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

abr-log

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abr-log

Log helper

  • 1.0.2
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

log helper

Features

  • log formatting, with date, log levels, module name and colors
  • log saving with daily file rotate

Installation

Add the line "abr-log": "git+https://git@github.com/dest4/log.git", to your package.json. Then npm install.

Usage

> const { log } = require("abr-log")("my module name");
> log.info("my name is foo");
[2018-04-19T10:23:08.663Z] info my module name: 	my name is foo

and a new line has been added in the subfolder log/04-19. log.error messages are also written to log/error.log.

Available loglevels

  • log.info
  • log.warn
  • log.error
  • log.debug

Licence

MIT

FAQs

Package last updated on 12 Jul 2018

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