GithubHelp home page GithubHelp logo

Comments (5)

Chakroun-Anas avatar Chakroun-Anas commented on September 14, 2024 5

Hello,

The customisation in term of style is interesting and when it comes to content it's even more interesting, i think this feature is definitely a must in the extension.

I will work on it in the weekend, so basically if everything goes fine it will be implemented by next Monday.

Thank you very much, i really appreciate your elegant suggestions.

from turbo-console-log.

fabiospampinato avatar fabiospampinato commented on September 14, 2024

I'm glad you like them! And thank you for being very reactive in implementing all this πŸ˜„

I see a few problems with my proposal though:

  1. If there's no wrapper the template will become console.log ( ' β†’ foo', foo ).
    • Maybe if there's no wrapper the extension could provide one anyway, something like global maybe, in order to have console.log ( 'global β†’ foo', foo )
    • Or maybe there could be multiple templates, one for each case, but I think it would be better to avoid this if possible.
  2. How do we detect the code written by this extension?
    • Maybe the default template could have the zero-width character embedded in it, and we could have a new setting which defines the regex used to match the lines of code added by this extension. So that if we modify the template we can also modify the regex. But this seems a bit too complicated, and we'll have to instruct the users about the zero-width char trick, this would be an advanced feature though, so maybe the added complexity is ok.

from turbo-console-log.

almarto avatar almarto commented on September 14, 2024

Hello,

The customisation in term of style is interesting and when it comes to content it's even more interesting, i think this feature is definitely a must in the extension.

I will work on it in the weekend, so basically if everything goes fine it will be implemented by next Monday.

Thank you very much, i really appreciate your elegant suggestions.

That weekend wasn't successful :trollface:

I was ready to open a new issue but it'd have been duplicated with this one, I'm facing the problem of my eslint config doesn't like the console.log so I'd need either a way to set a setting flag hey add eslint-disble-line to the end or this templating setting which is more powerful.

I'd like to know why didn't you finally implemented it if it was because of a lack of time or because you faced any problem which makes the feature impossible to be implemented.

I was thinking to give it a try so would be nice if it's even possible beforehand.

thanks @Chakroun-Anas

from turbo-console-log.

johnrix avatar johnrix commented on September 14, 2024

Was about to log a request when I found this one logged by @fabiospampinato.

One note I would add (in case there is ever any chance of this getting finished), is that separate templates would be needed for each supported language ie. JS, PHP etc.

from turbo-console-log.

PaulMEdwards avatar PaulMEdwards commented on September 14, 2024

This would be beneficial to us as we use a custom logger and want to use logger.debug instead of console.log.

from turbo-console-log.

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.