log: custom logging using `loglevel` & enum `LogLevel`
Does this help you in any way or is it just code cosmetic?
increases code gen speed for large components and frames.
Via log level? Because there shouldn't be any difference right?
yup, codebase has many console.log/warn statements, we may forgot to remove and it's not trival to comment and uncomment all the time while development. with this loglevel variable we can toggle log and can also change that on release builds.
I like it, sorry if it is slow, I should probably fix that.
If we do something like:
const originalLog = console.log;
console.log = function(...args) {
originalLog.apply(console, ["Node log:", ...args]);
};
then we don't need to override it everywhere/import everywhere and can be the best of both worlds. I'll try this solution.
@bernaferrari
@bernaferrari pushed with suggested changes