
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Log outgoing network requests.
A lightweight Node.js library that intercepts and logs all outgoing http, https, and fetch requests — including API calls made by SDKs.
Note: This library monkey-patches core modules. Use with caution in production environments.
Existing tools and devtools don't provide a simple way to log outgoing requests. This package fills that gap for debugging and development.
npm install outlogger
const axios = require('axios')
const { outlogger, restore } = require('outlogger')
// Start logging outgoing requests
outlogger({ verbose: true })
// Make requests with axios, fetch, http, or https...
await axios.get('https://jsonplaceholder.typicode.com/posts/1')
// Optionally, stop logging and restore original functions
// Call restore() if you want to revert monkey-patching
restore()
GET https://jsonplaceholder.typicode.com/posts/1 - Headers: {"Accept":"application/json, text/plain, */*","User-Agent":"axios/1.11.0","Accept-Encoding":"gzip, compress, deflate, br"}
const { tavily } = require('@tavily/core') // Example SDK
const { outlogger, restore } = require('outlogger')
outlogger({ verbose: true })
const client = tavily({ apiKey: process.env.TAVILY_API_KEY })
// tavily makes an API call behind the scenes
await client.search('site:google.com latest sports news', {
max_results: 3,
})
POST https://api.tavily.com/search - Body: {"query":"site:google.com latest sports news","max_results":3} - Headers: {"Accept":"application/json, text/plain, */*","Content-Type":"application/json","Authorization":"<your-api-key>","X-Client-Source":"tavily-js","User-Agent":"axios/1.11.0","Content-Length":"62","Accept-Encoding":"gzip, compress, deflate, br"}
| Option | Type | Default | Description |
|---|---|---|---|
verbose | boolean | false | Log headers, body, and query params |
params | boolean | false | Log query parameters only |
body | boolean | false | Log request body only |
headers | boolean | false | Log headers only |
http, https, and fetch.restore() to revert monkey-patching.MIT © 2025
View LICENSE
FAQs
Log outgoing network requests
We found that outlogger 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.