Comparing version 0.0.4 to 0.0.5
var Logger = exports; | ||
var util = require('util'); | ||
var moment = require('moment'); | ||
var config = require('loggerProperties') | ||
var config = require('../config') | ||
@@ -6,0 +6,0 @@ Logger.LEVELS = [ |
{ | ||
"name":"feather", | ||
"version":"0.0.4", | ||
"version":"0.0.5", | ||
"keywords": ["logger", "lightweight", "Unix style logging", "info debug warn"], | ||
@@ -5,0 +5,0 @@ "engines": { "node": "*"}, |
@@ -1,5 +0,9 @@ | ||
#Feather 0.0.1 | ||
#Feather | ||
A light-weight logger | ||
Current version 0.0.4 | ||
`npm install feather` | ||
* Feather integrates seamlessly with your codebase and has minimal overheads. | ||
@@ -14,50 +18,4 @@ * Configurarly control what you log in dev and in production. | ||
##Get Feather (if you have node.js and npm installed then skip to the [Main] step below) | ||
Feather runs on node.js. In order to run feather ant the tests first install node. The follwing instructions install node.js on Ubuntu | ||
Linux, other Unix distros may vary. For OSx, Windows or other please find other instructions to follow. | ||
###First install dependencies | ||
`$ sudo apt-get install g++ libssl-dev apache2-utils` | ||
###If git is not install then do this now | ||
`$ sudo apt-get install git-core` | ||
###Now node.js can be installed using git | ||
`$ git clone git://github.com/ry/node.git` | ||
###Now you are ready to configure and compile node.js | ||
`$ cd node | ||
$ ./configure | ||
$ make | ||
$ sudo make install` | ||
###You will also need to install any depencies. | ||
Defined in package.json are modules on which Feather depends on to run. The easiest way to do this is through npm, which | ||
can be installed following these steps: | ||
* If you do not have curl then get that first: | ||
`$ sudo apt-get install curl` | ||
* Now you are ready to fetch the npm code | ||
`$ curl http://npmjs.org/install.sh | sh` | ||
* May be worth taking a look at the [README] (http://npmjs.org/doc/README.html) file. | ||
#Main step below | ||
* Now you are ready to fetch feather | ||
Providing all the above has gone well, you will have all the facilities to do the following to get and try out feather | ||
`$ git@github.com:holidayextras/feather.git // fetch the code using git | ||
$ cd feather // move to Feather dir | ||
$ npm install // install depencies | ||
* Functions provided by feather are: | ||
@@ -81,3 +39,3 @@ | ||
$ node test/testLogger.js // run tests` | ||
`$ node test/run.js // run tests` | ||
@@ -84,0 +42,0 @@ #Set up |
@@ -13,3 +13,3 @@ var logger = require('../lib/logger'); | ||
try { | ||
logger[this.loggerLevels[i]]('Testing logger level ' + loggerLevels[i]); | ||
logger[this.loggerLevels[i]]('Testing logger level ' + this.loggerLevels[i]); | ||
//also check log file for current date to ensure that all is logged properly! | ||
@@ -26,3 +26,6 @@ } catch (e) { | ||
}); | ||
}, | ||
'testing' : function() { | ||
logger.info('foo') | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28010
17
62
55