0.1.5 • Published 10 years ago

node-scribe v0.1.5

Weekly downloads
45
License
-
Repository
github
Last release
10 years ago

a stream logging module for node.js

               _ _          
              (_) |         
 ___  ___ _ __ _| |__   ___ 
/ __|/ __| '__| | '_ \ / _ \
\__ \ (__| |  | | |_) |  __/
|___/\___|_|  |_|_.__/ \___|
                        
                        

NPM Version

Gitter chat

Build Status Coverage Status Dependency Status

Installing

To install the latest release with npm run:

npm install scribe

to install the development version from github run:

npm install "git+https://github.com/belbis/scribe"

Introduction

Scribe is a logging library for node.js that utilizes writeStreams.

Scripta

Scripta is just plural of Scriptum which are the writeStreams implemented for Scribe. Currently these scripta are supported:

  • SQS - AWS SQS scriptum write stream
  • Stream - generic write scriptum stream scripta
  • File - write to file
  • STDOut - write to stdout
  • DevNull -- write to /dev/null (currently only linux supported)

usage

stdout example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.STDOut({addNewLine: true});
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");
logger.close();

file example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.File({addNewLine: true});
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");
logger.close();

AWS SQS example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.SQS();
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");

disclaimer

this project is currently in development

future

allow for read as duplex stream

get devnull working on windows

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.1.0

10 years ago