rapidus
v0.4.3
Published
A logging package that does the essentials
Downloads
19
Readme
rapidus
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
Sink
s attached - Can have multiple
Processor
s attached - Can filter log events to propagate
Hierarchy
- A hierarchy of loggers
Something changed that's not your face
it's mine!