0.2.0 • Published 10 years ago

winston-nedb v0.2.0

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

winston-nedb

A nedb transport for winston

###Usage

####Available Options

  • filename (Optionnal) - string : if none given, db will not be persistent
  • timestamp (Optionnal) - bool : default tu true, register logs timestamp
  • compact (Optionnal) - bool : Enable compaction on log rotation. Not really usefull except if you plan to delete logs during lifetime.

####Usage

var Nedb = require('../winston-nedb').Nedb;
var winston = require('winston');

var options = {
    filename:'/tmp/log_db',
    index:true,
    autocompact:false
}
var logger = new (winston.Logger)({
    transports: [
        new Nedb(options)
    ]
});

###Currently supported

basic querying

###Untested but should work

###TODO

  • Allow indexing based on any field (and multiple fields?)
  • Check if autocompact is integer (or it works with float?) AND set a minimum
  • Implement capped size
  • Set multiple timestamp choices (epoch OR date OR ??)
0.2.0

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