connect-rest
Advanced tools
Comparing version 0.0.44 to 0.0.45
@@ -22,4 +22,3 @@ module.exports = function(grunt) { | ||
protoPath: 'proto', | ||
logger: 'connect-rest', | ||
logLevel: 'debug', | ||
logger:{ name: 'connect-rest', level: 'debug' }, | ||
context: '/api' | ||
@@ -26,0 +25,0 @@ }; |
@@ -6,3 +6,3 @@ /* | ||
*/ | ||
var VERSION = '0.0.44'; | ||
var VERSION = '0.0.45'; | ||
@@ -228,3 +228,4 @@ var connect = require('connect'); | ||
if( options.logger ) | ||
logger = _.isString( options.logger ) ? bunyan.createLogger({name: options.logger, src: true, level: options.logLevel || 'info'}) : options.logger; | ||
logger = exports.setupLogger( bunyan, options.logger, logger ); | ||
//logger = _.isString( options.logger ) ? bunyan.createLogger({name: options.logger, src: true, level: options.logLevel || 'info'}) : options.logger; | ||
@@ -309,2 +310,10 @@ domain = options.domain; | ||
exports.setupLogger = function(bunyan, options, logger){ | ||
var _logger = logger ? logger : new DummyLogger(); | ||
if( options ){ | ||
_logger = options.name ? bunyan.createLogger({name: options.name, src: true, level: options.level || 'info'}) : options; | ||
} | ||
return _logger; | ||
}; | ||
exports.VERSION = VERSION; | ||
@@ -311,0 +320,0 @@ exports.LOAD_SIZE_LIMIT = LOAD_SIZE_LIMIT; |
{ | ||
"name": "connect-rest", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "Exceptionally featureful RESTful web services middleware for Connect.", | ||
@@ -47,4 +47,4 @@ "keywords": [ | ||
}, | ||
"_id": "connect-rest@0.0.44", | ||
"_from": "connect-rest@>=0.0.44" | ||
"_id": "connect-rest@0.0.45", | ||
"_from": "connect-rest@>=0.0.45" | ||
} |
@@ -508,2 +508,3 @@ [connect-rest](https://github.com/imrefazekas/connect-rest) is a featureful very easy-to-use middleware for [connect](http://www.senchalabs.org/connect/) for building REST APIs. The library has a stunning feature list beyond basic rest functionality. | ||
- 0.0.43-45: Serious fixes | ||
- 0.0.42: Incomint request count monitoring added | ||
@@ -510,0 +511,0 @@ - 0.0.41: listener for populated measurements can be set |
@@ -49,4 +49,3 @@ var rest = require('../lib/connect-rest'); | ||
protoPath: 'proto', | ||
logger: 'connect-rest', | ||
logLevel: 'debug', | ||
logger: { name: 'connect-rest', level: 'debug' }, | ||
context: '/api', | ||
@@ -53,0 +52,0 @@ domain: restDomain, |
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
85691
954
539