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

rapidus

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rapidus

A logging package that does the essentials

latest
Source
npmnpm
Version
0.4.3
Version published
Maintainers
1
Created
Source

rapidus

NPM Version Build Status Coverage Status

A logging package that does the essentials.

Partners in crime

A connect middleware that generates an access log

Colourful logging with sparkle

A module to configure your logger from JSON, Yaml etc

Examples

Basic usage is very similiar to log4js or python's logging module

logger = require('rapidus').getLogger('myapp.network');

logger.debug('connecting to %s', host)
logger.error('failed to connect', err);

For more involved examples see the examples repository

Core concepts

Record

  • A single log event, contains message and additional details

Formatter

  • Formats a Record to a string, used by Sink

Processor

  • Applied to log record to add extra data before being given to the sinks

Sink

  • Append log event to specific destination
  • Uses attached formatter to format record
  • Can filter log events to include

Logger

  • A named logger within in a logging hierarchy
  • Can have multiple Sinks attached
  • Can have multiple Processors attached
  • Can filter log events to propagate

Hierarchy

  • A hierarchy of loggers

Something changed that's not your face

it's mine!

FAQs

Package last updated on 26 Nov 2015

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