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