UNPKG

@scandit/web-datacapture-core

Version:

Scandit Data Capture SDK for the Web

1 lines 653 B
var v;(t=>{(n=>(n.Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Quiet="quiet"))(t.Level||(t.Level={}));let u=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),l="debug";function c(e){l=e;}t.setLevel=c;function o(e,...r){if(!(u.get(l)>u.get(e)))switch(e){case "debug":{console.debug(...r);break}case "info":{console.log(...r);break}case "warn":{console.warn(...r);break}case "error":{console.error(...r);break}}}t.log=o;function b(...e){o("warn",...e);}t.warn=b;function a(...e){o("debug",...e);}t.debug=a;function f(...e){o("info",...e);}t.info=f;function L(...e){o("error",...e);}t.error=L;})(v||(v={}));export{v as a};