node-squarespace-logger
Shared logging utility for node-squarespace- modules.
Installation
npm install node-squarespace-logger
Updating
npm update node-squarespace-logger
Usage
var sqsLogger = ; // Log some useful stuffsqsLogger; // Silence the loggersqsLogger; // Pass your logger around to child modules to retain the silencevar myModule = sqsLogger ; // or like thisvar myModule = ;myModule;
These are the context types for the logger
- info ( white )
- warn ( yellow )
- error ( red )
- server ( magenta )
- cache ( green )
- template ( cyan )
Pull Requests
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request