New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

stoolie

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

stoolie

Wrapper around well used logger, winston.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
55
816.67%
Maintainers
1
Weekly downloads
 
Created
Source

Stoolie

GitHub package.json version Commitizen friendly code style: prettier GitHub

A person employed or acting as a decoy or informer, especially for the police.

This is a logger package that wraps winston with some easy utility methods.

Import

import stoolie from 'stoolie';

Using Stoolie

import stoolie, { LogLevel } from 'stoolie'; 
const logger = stoolie(LogLevel.INFO);

const entry = logger.withCategory('example').withType('README');
entry.info('Log a message');

Log Levels

  • Error
  • Warn
  • Info
  • Verbose
  • Debug
  • Silly

Testing

For testing a NullLog can be imported by name. This will allow you to pass in a logger without having to mock one out.

Keywords

winston

FAQs

Package last updated on 10 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