new TaffyDb(opts)
TaffyDb - A logging transport implementation using a TaffyDb instance.
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | (optional) - An object, holding configuration values for the TaffyDb transport. The only valid key is the 'targetdb', an instance of TaffyDb. |
- Source:
Example
var clogger = require('node-clogger');
var taffydb = require('taffydb').taffy;
var targetdb = taffydb();
var logger = new clogger.CLogger().addTransport(new clogger.transports.TaffyDb({
'targetdb': targetdb
});
logger.debug('%sl%s', 'd', 'c');