A logging library for Axios HTTP client that beautifies request, response, and error logs using Axios interceptors. Current stable version is 2.8.1, released with no recent updates; development appears maintenance-level. It provides three logger functions (requestLogger, responseLogger, errorLogger) that can be injected directly into Axios interceptors or composed with custom logic. Configuration is available via setGlobalConfig or per-interceptor options, supporting date formatting, prefix text, and custom logger instances. It differentiates from generic HTTP logging tools by being tightly coupled to Axios's interceptor API, making setup trivial for Axios users. TypeScript type definitions are included.
npm install axios-loggerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Axios interceptors for request, response, and error logging using axios-logger.
Evaluate whether logging needs are still met; consider other Axios logging libraries if issues arise.
Pass a custom logger in config: logger: myLogger.info.bind(myLogger)
Use namespace import: import * as AxiosLogger from 'axios-logger' or named import: import { requestLogger } from 'axios-logger'Use only in Node.js backend; for browser, consider alternatives like Axios interceptors with custom console wrapper.
Ensure interceptors return the AxiosLogger function result: return AxiosLogger.requestLogger(request);
Use namespace import: import * as AxiosLogger from 'axios-logger';
Use proper camelCase: import { requestLogger } from 'axios-logger';Ensure instance is created with axios.create() and interceptor type is correct (e.g., request or response).
No dependency data recorded yet.