0.2.0 • Published 10 years ago

winston-sherlock v0.2.0

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

winston-sherlock

A sherlock transport for winston.

Getting Started

Install the module with: npm install winston-sherlock

Save it to your package.json with npm install winston-sherlock --save

var winston   = require('winston');
var Sherlock  = require('winston-sherlock').Sherlock;
winston.add(Sherlock, options);

winston.debug("Debug message");

This transport will try to figure out what the file was from which the log function was called and create a sherlock scheme from it, but you can give it a specific filename like this:

winston.debug("Debug message", {__filename: __filename});

Contributing

Compile the coffeescript source with grunt coffee

In lieu of a formal styleguide, take care to maintain the existing coding style.

Release History

0.1.0 First public release

License

Copyright (c) 2014 Niels van Hoorn
Licensed under the MIT license.