UNPKG

@lsk4/log

Version:

Yet another logger whitch combines the best features of debug, bunyan, logfmt/logrus, morgan/winston

8 lines (6 loc) 563 B
import { isError, getCode, getMessage } from '@lsk4/err'; import p from 'fast-safe-stringify'; var m=Object.defineProperty;var e=(t,r)=>m(t,"name",{value:r,configurable:!0});var i=p.default;var f=e((t,r=null,u=0)=>typeof t=="object"?i(t,r,u):String(t),"toString");var h=e(t=>t.map(r=>isError(r)?getCode(r):null).filter(Boolean)[0],"getErrCode"),x=e(t=>t.length?t.map(r=>isError(r)?getMessage(r):f(r)).join(" "):null,"createMsg"),w=x; export { x as createMsg, w as default, h as getErrCode }; //# sourceMappingURL=out.js.map //# sourceMappingURL=createMsg.js.map