"use strict";(globalThis.webpackChunk_elliemae_pui_diagnostics=globalThis.webpackChunk_elliemae_pui_diagnostics||[]).push([[8634],{116:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>a});var o=r(758);const s={},t=o.createContext(s);function i(e){const n=o.useContext(t);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),o.createElement(t.Provider,{value:n},e.children)}},4751:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"api/functions/logUnhandledErrors","title":"logUnhandledErrors()","description":"log unhandled errors and promise rejections","source":"@site/docs/api/functions/logUnhandledErrors.md","sourceDirName":"api/functions","slug":"/api/functions/logUnhandledErrors","permalink":"/diagnostics/api/functions/logUnhandledErrors","draft":false,"unlisted":false,"editUrl":"https://git.elliemae.io/platform-ui/pui-diagnostics.git/docs/api/functions/logUnhandledErrors.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"http()","permalink":"/diagnostics/api/functions/http"},"next":{"title":"logger()","permalink":"/diagnostics/api/functions/logger"}}');var s=r(6070),t=r(116);const i={},a="logUnhandledErrors()",l={},d=[{value:"Parameters",id:"parameters",level:2},{value:"logger",id:"logger",level:3},{value:"Returns",id:"returns",level:2}];function c(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"logunhandlederrors",children:"logUnhandledErrors()"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"function logUnhandledErrors(logger: Logger): void;\n"})}),"\n",(0,s.jsx)(n.p,{children:"log unhandled errors and promise rejections"}),"\n",(0,s.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsx)(n.h3,{id:"logger",children:"logger"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/diagnostics/api/type-aliases/Logger",children:(0,s.jsx)(n.code,{children:"Logger"})})}),"\n",(0,s.jsx)(n.p,{children:"instance of logger"}),"\n",(0,s.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}}}]);