Giter Club home page Giter Club logo

Comments (7)

MicroJes avatar MicroJes commented on May 18, 2024 1

opts is param of dev function but not use it?it seems code not finished.need add opts like date IP etc to console log.

from logger.

nswbmw avatar nswbmw commented on May 18, 2024 1

+1

from logger.

jonathanong avatar jonathanong commented on May 18, 2024

Should be a separate module IMO. You don't need all this color stuff and you'd want to pipe to arbitrary streams

from logger.

tj avatar tj commented on May 18, 2024

PRETTY COLORS haha. the time part can be useful in dev, date not so much, but if it's in a nice yy-mm-dd hh:mm:ss format it wouldn't bother me

from logger.

jonathanong avatar jonathanong commented on May 18, 2024

yeah i agree that time would be useful. i just don't want to have a billion options like we had with connect's logger.

i think the best route to go is to either separate the actual logs and their display (different repos or just different methods) or have this be an emitter, emit specific events, then have logging middleware just log these events. i don't want want to encourage people to actually listen to these events for logic though

from logger.

jonathanong avatar jonathanong commented on May 18, 2024

we could also just have tracers hook into the events emitted on this.

from logger.

tj avatar tj commented on May 18, 2024

yea in general I agree having separate modules for specific cases is way better, I'm down for that too, easy copy/paste

from 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.