Closed cassiozen closed 3 years ago
%j
won't work on CodeSandbox either - opened issue (https://github.com/codesandbox/codesandbox-client/issues/5793)
Apparently, %o
is now standard: https://nodejs.org/api/util.html#util_util_format_format_args
Not closing to keep an eye on codesandbox development.
Alternative: Given that many sandboxes don't support the %o
substitution (neither codesandbox, nor stackblitz), we could use the same patter redux-logger-middleware uses:
console.groupCollapsed('%c event', 'color: gray; font-weight: lighter;', event.type);
console.log(/*whatever*/);
console.log(/*whatever*/);
console.groupEnd();
Currently using %o. Change for %s or %j