UNPKG

hey-log

Version:
19 lines (17 loc) 604 B
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.log = factory(); }((typeof window == 'object' ? window : typeof global == 'object' ? global : this), function () { "use strict"; var heyLog = {}; heyLog = console.log.bind(console); heyLog = heyLog || function(){}; heyLog.info = function() { console.info.apply(console, arguments); } heyLog.error = function() { console.error.apply(console, arguments); } return heyLog; }));