GitXplorerGitXplorer
k

rapidus

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
c0f22e0fdb2249fc13d46dc28d9f39fe539fd26c

0.4.3

kkeis committed 9 years ago
Unverified
8ceef89ec4fd1e96f6f083946bb1a891bc8c2f8a

fix bad default wrapper

kkeis committed 9 years ago
Unverified
7965a832a81de6a1980aec5b880d1a90404013ae

0.4.2

kkeis committed 9 years ago
Unverified
02ceaf9ae572475dc18513aeb8129dfe19792ff4

update travis config

kkeis committed 9 years ago
Unverified
b5326a6302ccbd9d7b7f5326bfa70ac35324b9e7

fix newline transform test

kkeis committed 9 years ago
Unverified
8d264d46fd12161f4e1e1d8be63432ba49b8720a

log-record@^1.0.1 mlogy@^1.0.3

kkeis committed 9 years ago

README

The README file for this repository.

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!