1.0.0 • Published 7 years ago
axios-basic-logger v1.0.0
axios-basic-logger
Axios logging interceptors
Table of Contents
Install
This project uses node and npm.
$ npm install axios-basic-logger
$ # OR
$ yarn add axios-basic-loggerUsage
import axios from "axios";
import useLogger from "axios-basic-logger";
useLogger(axios);
axios
  .get("https://jsonplaceholder.typicode.com/todos")
  .then(() => console.log("ja"));
// REQUEST  10:35:16:244 GET https://jsonplaceholder.typicode.com/todos 
// RESPONSE 10:35:16:283 200 (GET https://jsonplaceholder.typicode.com/todos) 39ms 
// jaContribute
- Fork it and create your feature branch: 
git checkout -b my-new-feature - Commit your changes: 
git commit -am "Add some feature" - Push to the branch: 
git push origin my-new-feature - Submit a pull request
 
License
MIT
1.0.0
7 years ago