const a = ["error", "warn", "log", "info"];
let f = "warn";
function o(e) {
  if (f && a.indexOf(e) <= a.indexOf(f)) {
    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
      r[l - 1] = arguments[l];
    console[e](...r);
  }
}
function t(e) {
  return a.reduce((n, r) => (n[r] = o.bind(console, r, e), n), {});
}
t.level = (e) => {
  f = e;
};
o.level = t.level;
export {
  t as default
};
