"use strict";(globalThis.webpackChunk_elliemae_pui_diagnostics=globalThis.webpackChunk_elliemae_pui_diagnostics||[]).push([[7331],{116:(e,s,n)=>{n.d(s,{R:()=>r,x:()=>o});var a=n(758);const t={},i=a.createContext(t);function r(e){const s=a.useContext(i);return a.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(t):e.components||t:r(e.components),a.createElement(i.Provider,{value:s},e.children)}},2938:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>o,default:()=>g,frontMatter:()=>r,metadata:()=>a,toc:()=>c});const a=JSON.parse('{"id":"api/type-aliases/LogMessage","title":"LogMessage","description":"log message object received by transport layer","source":"@site/docs/api/type-aliases/LogMessage.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LogMessage","permalink":"/diagnostics/api/type-aliases/LogMessage","draft":false,"unlisted":false,"editUrl":"https://git.elliemae.io/platform-ui/pui-diagnostics.git/docs/api/type-aliases/LogMessage.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docsSidebar","previous":{"title":"LogFunctionWithLogLevel()","permalink":"/diagnostics/api/type-aliases/LogFunctionWithLogLevel"},"next":{"title":"LogRecord","permalink":"/diagnostics/api/type-aliases/LogRecord"}}');var t=n(6070),i=n(116);const r={},o="LogMessage",l={},c=[{value:"Type Declaration",id:"type-declaration",level:2},{value:"@timestamp",id:"timestamp",level:3},{value:"level",id:"level",level:3},{value:"message",id:"message",level:3},{value:"resourceId?",id:"resourceid",level:3},{value:"resourceType?",id:"resourcetype",level:3}];function d(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"logmessage",children:"LogMessage"})}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"type LogMessage = BaseLogSchema & {\n  @timestamp: string;\n  level: keyof typeof LogLevels;\n  message: string;\n  resourceId?: string;\n  resourceType?: string;\n} & LogData;\n"})}),"\n",(0,t.jsx)(s.p,{children:"log message object received by transport layer"}),"\n",(0,t.jsx)(s.h2,{id:"type-declaration",children:"Type Declaration"}),"\n",(0,t.jsx)(s.h3,{id:"timestamp",children:"@timestamp"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"@timestamp: string;\n"})}),"\n",(0,t.jsx)(s.p,{children:"time at which the log message was processed"}),"\n",(0,t.jsx)(s.h3,{id:"level",children:"level"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"level: keyof typeof LogLevels;\n"})}),"\n",(0,t.jsxs)(s.p,{children:["log level of the message. ",(0,t.jsx)(s.a,{href:"/diagnostics/api/enumerations/LogLevels",children:"LogLevels"})]}),"\n",(0,t.jsx)(s.h3,{id:"message",children:"message"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"message: string;\n"})}),"\n",(0,t.jsx)(s.p,{children:"log message"}),"\n",(0,t.jsx)(s.h3,{id:"resourceid",children:"resourceId?"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"optional resourceId: string;\n"})}),"\n",(0,t.jsx)(s.p,{children:"The ID of the resource that the current request/message is working on. Only applicable when resourceType is also present"}),"\n",(0,t.jsx)(s.h3,{id:"resourcetype",children:"resourceType?"}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-ts",children:"optional resourceType: string;\n"})}),"\n",(0,t.jsx)(s.p,{children:"The type of resource that the current request/message is working on: loan, contact, agent, etc."})]})}function g(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}}}]);