Comments (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.
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:
- 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 haveconsole.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.
- Maybe if there's no wrapper the extension could provide one anyway, something like
- 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.
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
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.
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.
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)
- Variable Wrapper
- Want to add log color configuration
- Doesn't work work in all windows HOT 3
- Suggestions for handling the filename and line number
- brute force printing... HOT 1
- custom "log function" does not apply on "Wrap Log Message"
- Working challenge HOT 1
- Error: Illegal value for `line` ; Parameter doesnt get logged
- Using Turbo Console Log with Console Ninja Inconvenience
- some issues in Vue3 project
- Simply doesn't Add a print statement every time
- Is there a way to customize message it myself using variables etc. used in this library? HOT 1
- Add program variables (line number, filename...) in prefix or suffix?
- Whether you can freely control βconso.logβ single quotes or double quotes
- Typescript function type parameters multiline brackets support HOT 2
- The generation location is incorrect
- πππ Auto change line number in console.log when line no changed
- turbo for errors shortcut
- If a line with a console.log() statement has a comment on the same line, the comment's double slashed will be deleted
- Is there any support for adding support for console.time and console.timeEnd?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbo-console-log.