Giter Site home page Giter Site logo

Usage of console.log about axios-logger HOT 8 CLOSED

hg-pyun avatar hg-pyun commented on June 7, 2024 6
Usage of console.log

from axios-logger.

Comments (8)

hg-pyun avatar hg-pyun commented on June 7, 2024 3

Hi @mirfilip. When I first created this library, I directed zero config. However, I'm adding options for other requirements. Your idea is good. I will develop it next step!

Thank you :)

from axios-logger.

Fylipp avatar Fylipp commented on June 7, 2024 1

I think this is a great idea. I use winston for logging in my Express app and allowing for custom logging implementations would help the request/response logs fit in with the rest of the logging. Maybe console.log can be reduced to a fallback logger?

from axios-logger.

filiphoeven avatar filiphoeven commented on June 7, 2024 1

Same here.
Using winston to log to multiple targets like console, log files and syslog.
Looking forward to see the possibilty to add custom logging function. Also for errors.

from axios-logger.

hg-pyun avatar hg-pyun commented on June 7, 2024

@Fylipp I totally agree! I will develop that feature soon. Thank you very much.

from axios-logger.

hg-pyun avatar hg-pyun commented on June 7, 2024

@filiphoeven Thank you for feedback. I wanted to develop it quickly, but I was too busy these days. Now that I have some leeway, add it.

from axios-logger.

KevLehman avatar KevLehman commented on June 7, 2024

Hey! Any updates on this? Is there something I can help with? 👍

from axios-logger.

ClintEsteMadera avatar ClintEsteMadera commented on June 7, 2024

Hi! I came across this library which I find very useful but this is the main reason why I cannot use it. Are you planning to develop this anytime soon? Is there anything I can help with?

EDIT: I've just pushed a PR. I'm using this in my project and it works! hope it helps! #62

from axios-logger.

moltar avatar moltar commented on June 7, 2024

I think the easiest would be to just expose printLog option, which accepts a function that prints the log.

from axios-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.