-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Migrate CLI output to Logger #495
Comments
👍 for having the ability to turn on/off. Since we use |
|
or maybe different methods, like |
@dignifiedquire agree that it should just be @tarunbatra this is about printing output to the console and not logging things that can be controlled by for example log-level and such. |
@tarunbatra for log messages we use |
@diasdavid @victorbjelkholm thanx for clarifying! I was thinking otherwise. |
@victorbjelkholm could you finish this since you got it started? :) |
@diasdavid I just started using it lightly. I think we shouldn't migrate everything at once but rather think about it when writing new/refactoring code (and when reviewing) so at one point, we'll be using it 100%. Does that make sense for you? |
Not really, it will confuse contributors and even ourselves at times as it will be always half done. |
@diasdavid hm, ok. Will have to push this forward then, won't have any bandwidth currently to work on it... |
Hi, I might take a look at this, Feel free to assign it to me ;) |
@rasmuserik thank you! Let me know if you get questions along the way |
License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk>
* refactor: CLI should use print instead of console.log #495 License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk> * feat: add quiet/verbose CLI flag, - related to #931 License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk> * add test, and remove verbosity levels License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk>
Can this be closed now, or is anything else missing, after merge of #931 ? |
You have completed this! Thanks @rasmuserik 💖🍾 |
* refactor: CLI should use print instead of console.log #495 License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk> * feat: add quiet/verbose CLI flag, - related to #931 License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk> * add test, and remove verbosity levels License: MIT Signed-off-by: Rasmus Erik Voel Jensen <github-rasmuserik@solsort.dk>
With the new files APIs, I've started on a logger that has many benefits compared to the current approach of using
console.log
for output.console.log
is often used to debugging, may not be clear it's actual output from CLII don't think this is a urgent refactor we have to do right now, but maybe we can start thinking about it a little, and write new code with the logger, rather than migrating everything at once.
The text was updated successfully, but these errors were encountered: