Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Module dependencies.
*/
var morgan = require('morgan');
var merge = require('utils-merge');
/**
* Undeprecate default format.
*/
Object.defineProperty(morgan, 'default', {
configurable: true,
enumerable: true,
value: morgan.combined
});
/**
* Logger:
*
* Log requests with the given `options` or a `format` string.
*
* See [morgan](https://github.com/expressjs/morgan)
*
* @param {String|Function|Object} format or options
* @return {Function}
* @api public
*/
module.exports = function logger(options) {
var format = 'default';
return app;
}
}
/**
* The default options used when constructing a dashboard.
* @static
*/
Dashboard.defaults = {
dashboardUrl: null,
databaseConnectionString: 'postgres://localhost:5432/pa11y_sidekick',
environment: 'development',
log: console,
port: 8080,
requestLogFormat: `${morgan.combined} authUser=":auth[user]" authKey=":auth[key]"`,
sessionSecret: null
};
module.exports = Dashboard;
/**
* Module dependencies.
*/
var morgan = require('morgan');
var merge = require('utils-merge');
/**
* Undeprecate default format.
*/
Object.defineProperty(morgan, 'default', {
configurable: true,
enumerable: true,
value: morgan.combined
});
/**
* Logger:
*
* Log requests with the given `options` or a `format` string.
*
* See [morgan](https://github.com/expressjs/morgan)
*
* @param {String|Function|Object} format or options
* @return {Function}
* @api public
*/
module.exports = function logger(options) {
var format = 'default';
/**
* Module dependencies.
*/
var morgan = require('morgan');
var utils = require('../utils');
/**
* Undeprecate default format.
*/
Object.defineProperty(morgan, 'default', {
configurable: true,
enumerable: true,
value: morgan.combined
});
/**
* Logger:
*
* Log requests with the given `options` or a `format` string.
*
* See [morgan](https://github.com/expressjs/morgan)
*
* @param {String|Function|Object} format or options
* @return {Function}
* @api public
*/
module.exports = function logger(options) {
var opts = utils.merge({