Chakroun-Anas / turbo-console-log

591 stars 141 forks source link

[feature request] Update log messages #147

Open devingfx opened 2 years ago

devingfx commented 2 years ago

Sometimes you move functions, write other stuffs or move code to another file during development, and so log, messages that are already there, contains wrong (old) line number or filename informations.

It could be useful to be able to update all messages from the file with 1 shortcut to get correct log messages without having to do it manually on each log messages.

swedeofenbound commented 1 year ago

I really like this idea, +1 here. And I came here to write a proposal of my own, looked though all open issues and found this and thought I'd then expand on this with my little request instead, since it's basically the same thing but being in the same file; a same but different scenario: Nevertheless, it would be really nice if the line numbers in the log message would auto update 'on save'. Maybe even on insert/delete of a log - maybe depends on performance, dunno. Some sort of explanation: Just as often as one can log messages from top to bottom in a file, sometimes you start in the bottom and then find another line above and logs there, maybe you continue in between or even further up or whatever really, and each time is a risk of making all log statements on any lines below have their 'line X' messed up since they are all pushed down as many lines that you may insert above. If performance takes a hit then why not make it an optional setting, too(?) Thanks in advance and thanks for an already very appreciated extension.