Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdumetz/winston-nedb
A nedb transport for winston
https://github.com/sdumetz/winston-nedb
Last synced: about 1 month ago
JSON representation
A nedb transport for winston
- Host: GitHub
- URL: https://github.com/sdumetz/winston-nedb
- Owner: sdumetz
- Created: 2014-03-31T12:49:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T15:00:14.000Z (over 8 years ago)
- Last Synced: 2024-11-06T23:42:57.024Z (about 2 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
winston-nedb
============A nedb transport for winston
###Usage
####Available Options
- __filename__ _(Optionnal)_ - string : if none given, db will not be persistent
- __index__ _(Optionnal)_ - bool : index db based on timestamp. speed up search on this field
- __compact__ _(Optionnal)_ - bool : Enable compaction on log rotation. Not really usefull except if you do not plan to delete logs####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 ??)