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