console.log(and related functions) can output given params to console
Besides simple string param, console.log can accept object list and format string:
console.log(obj1 [, obj2, ..., objN);
console.log(msg [, subst1, ..., substN);
I want to know if there is a simple way to get the string representation of the params given to console.log, in other words, I just want to get the string representation that console.log output.
diff from the question: "How to get the console.log content as string in JavaScript" is, the answer seems can not handle format string and I want to get the string output of console.log which is different from the implementation of printf.