Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README; configure log4js

  • Loading branch information...
commit 27e39dc78f0a3420b18a9b8cd986d4e96eb3e1c0 1 parent e0180df
@clintandrewhall authored
Showing with 23 additions and 4 deletions.
  1. +4 −1 lib/node-foursquare.js
  2. +3 −3 package.json
  3. +16 −0 readme.md
View
5 lib/node-foursquare.js
@@ -9,13 +9,16 @@ var qs = require('querystring'),
sys = require("sys"),
https = require('https'),
urlParser = require('url'),
- logger = require("log4js")().getLogger("node-foursquare"),
+ log4js = require("log4js")(),
+ logger = log4js.getLogger("node-foursquare"),
defaultConfig = {
"accessTokenUrl" : "https://foursquare.com/oauth2/access_token",
"authenticateUrl" : "https://foursquare.com/oauth2/authenticate",
"apiUrl" : "https://api.foursquare.com/v2"
};
+log4js.configure("./../log4js.json");
+
/**
*
* @param config
View
6 package.json
@@ -22,16 +22,16 @@
}
],
"dependencies": {
- "express": "~2.2",
"log4js": "~0.2"
},
"engines": {
- "node": "~4"
+ "node": "~0.4"
},
"homepage": "https://github.com/clintandrewhall/node-foursquare",
"author": "Clint Andrew Hall (http://www.clintandrewhall.com)",
"directories": {
- "lib": "."
+ "lib": "./lib",
+ "doc": "./doc"
},
"scripts": {
"test": "node test.js"
View
16 readme.md
@@ -51,6 +51,22 @@ All methods within the module require the Access Token from the callback.
For more details and examples, take a look at the test oracle in the /test directory.
+Logging
+-------
+
+This module uses Log4js to log events. I highly recommend you add the following log4js.json file to your project:
+
+ {
+ "appenders": [{
+ "type" : "console"
+ }],
+ "levels" : {
+ "node-foursquare" : "OFF"
+ }
+ }
+
+For more information, visit: https://github.com/csausdev/log4js-node
+
Testing
-------
Please sign in to comment.
Something went wrong with that request. Please try again.