"use strict";(globalThis.webpackChunk_elliemae_pui_diagnostics=globalThis.webpackChunk_elliemae_pui_diagnostics||[]).push([[5711],{116:(e,s,n)=>{n.d(s,{R:()=>t,x:()=>o});var r=n(758);const i={},a=r.createContext(i);function t(e){const s=r.useContext(a);return r.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:t(e.components),r.createElement(a.Provider,{value:s},e.children)}},3580:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>o,default:()=>p,frontMatter:()=>t,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"api/type-aliases/Transport","title":"Transport","description":"log message transport layer","source":"@site/docs/api/type-aliases/Transport.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/Transport","permalink":"/diagnostics/api/type-aliases/Transport","draft":false,"unlisted":false,"editUrl":"https://git.elliemae.io/platform-ui/pui-diagnostics.git/docs/api/type-aliases/Transport.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"RuntimeLoggerOptions","permalink":"/diagnostics/api/type-aliases/RuntimeLoggerOptions"},"next":{"title":"Features","permalink":"/diagnostics/features"}}');var i=n(6070),a=n(116);const t={},o="Transport",l={},c=[{value:"Properties",id:"properties",level:2},{value:"log()",id:"log",level:3},{value:"Parameters",id:"parameters",level:4},{value:"msg",id:"msg",level:5},{value:"logLevel?",id:"loglevel",level:5},{value:"Returns",id:"returns",level:4}];function d(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",header:"header",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.header,{children:(0,i.jsx)(s.h1,{id:"transport",children:"Transport"})}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-ts",children:"type Transport = {\n  log: (msg: LogMessage, logLevel?: LogLevels) => Promise<unknown>;\n};\n"})}),"\n",(0,i.jsx)(s.p,{children:"log message transport layer"}),"\n",(0,i.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(s.h3,{id:"log",children:"log()"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-ts",children:"log: (msg: LogMessage, logLevel?: LogLevels) => Promise<unknown>;\n"})}),"\n",(0,i.jsx)(s.p,{children:"process log message"}),"\n",(0,i.jsx)(s.h4,{id:"parameters",children:"Parameters"}),"\n",(0,i.jsx)(s.h5,{id:"msg",children:"msg"}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsx)(s.a,{href:"/diagnostics/api/type-aliases/LogMessage",children:(0,i.jsx)(s.code,{children:"LogMessage"})})}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsx)(s.a,{href:"/diagnostics/api/type-aliases/LogMessage",children:"LogMessage"})}),"\n",(0,i.jsx)(s.h5,{id:"loglevel",children:"logLevel?"}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsx)(s.a,{href:"/diagnostics/api/enumerations/LogLevels",children:(0,i.jsx)(s.code,{children:"LogLevels"})})}),"\n",(0,i.jsx)(s.h4,{id:"returns",children:"Returns"}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.code,{children:"Promise"}),"<",(0,i.jsx)(s.code,{children:"unknown"}),">"]})]})}function p(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}}}]);