Currently, the provided console object provides the log, info, warn, debug and error methods.
They all take any number of arguments and join them with " ". In Node, the first element could also be a format string:
console.log("(%i/%i)", 3, 4)
Which works like the following Ruby code
So we could implement that to offer the entirety of those five logging functions. We can also check which other methods of console make sense to implement.
Currently, the provided console object provides the log, info, warn, debug and error methods.
They all take any number of arguments and join them with " ". In Node, the first element could also be a format string:
Which works like the following Ruby code
So we could implement that to offer the entirety of those five logging functions. We can also check which other methods of console make sense to implement.