
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
server-log-engine
Advanced tools
Axios interceptor of logging requests & responses by debug.

$ npm install --save axios server-log-engine
- Install: add
require('server-log-engine')before any axios execution.- Enable: set
DEBUG=axiosenvironment variables before start your fantastic Node.js application.
Or
Add
require('server-log-engine/enable')before any axios execution to install and enable.
Or
Run DEBUG=axios node --require server-log-engine [entrypoint.js]
Or
Run node --require server-log-engine/enable [entrypoint.js]
OR
- Install: add when using ES modules (type: module) before any axios execution.
import { createRequire } from 'module'; const require = createRequire(import.meta.url); require('server-log-engine'); const axios = require('axios');
- Enable: set
DEBUG=axiosenvironment variables before start your fantastic Node.js application.
- Install: add
require('server-log-engine')before any axios execution.- Enable: set
localStorage.debug = "axios"before start your fantastic web application.
Or
Add
require('server-log-engine/enable')before any axios execution to install and enable.
Please read README of debug for usage details.
// Log content type
require('server-log-engine')({
request: function (debug, config) {
debug('Request with ' + config.headers['content-type'])
},
response: function (debug, response) {
debug(
'Response with ' + response.headers['content-type'],
'from ' + response.config.url
)
},
error: function (debug, error) {
// Read https://www.npmjs.com/package/axios#handling-errors for more info
debug('Boom', error)
}
})
Use require('server-log-engine').addLogger(instance, debug) to add custom debug
logger to custom instance.
var github = axios.create({ baseURL: 'https://api.github.com/' })
var githubLogger = require('debug')('github')
require('server-log-engine').addLogger(github, githubLogger)
github('/user')
And Yours...
MIT
FAQs
security holding package
The npm package server-log-engine receives a total of 0 weekly downloads. As such, server-log-engine popularity was classified as not popular.
We found that server-log-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.