Skip to content

Instantly share code, notes, and snippets.

@antonybudianto
Forked from mksoni88/overridelog.js
Last active December 8, 2022 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonybudianto/312db08fa9c6c9201586bdb765aa6cf1 to your computer and use it in GitHub Desktop.
Save antonybudianto/312db08fa9c6c9201586bdb765aa6cf1 to your computer and use it in GitHub Desktop.
Override console.warn to log so that it is not aliased to error
const _log = console.log;
global.console.warn = function() {
_log.apply(null, arguments);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment