"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[920],{8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>a});var r=s(6540);const t={},l=r.createContext(t);function o(e){const n=r.useContext(l);return r.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(t):e.components||t:o(e.components),r.createElement(l.Provider,{value:n},e.children)}},9248:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>i,contentTitle:()=>a,default:()=>d,frontMatter:()=>o,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"XXTLanControl.lua/core/set_log_aliases","title":"Set Log Column Aliases (LCC.set_log_aliases)","description":"Signature","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/XXTLanControl.lua/core/set_log_aliases.md","sourceDirName":"XXTLanControl.lua/core","slug":"/XXTLanControl.lua/core/set_log_aliases","permalink":"/docs/en/XXTLanControl.lua/core/set_log_aliases","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":30,"frontMatter":{"sidebar_position":30},"sidebar":"tutorialSidebar","previous":{"title":"Configure Request Retries (LCC.set_retry_count)","permalink":"/docs/en/XXTLanControl.lua/core/set_retry_count"},"next":{"title":"Connect To The Controller (LCC.connect)","permalink":"/docs/en/XXTLanControl.lua/core/connect"}}');var t=s(4848),l=s(8453);const o={sidebar_position:30},a="Set Log Column Aliases (LCC.set_log_aliases)",i={},c=[{value:"Signature",id:"signature",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Notes",id:"notes",level:2},{value:"Example",id:"example",level:2}];function u(e){const n={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,l.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"set-log-column-aliases-lccset_log_aliases",children:"Set Log Column Aliases (LCC.set_log_aliases)"})}),"\n",(0,t.jsx)(n.h2,{id:"signature",children:"Signature"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:"LCC.set_log_aliases(aliases)\n"})}),"\n",(0,t.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["aliases",(0,t.jsx)(n.br,{}),"\n","Table. Ordered list of alias strings for log channels 1 through 6."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"none"}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"notes",children:"Notes"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsxs)(n.p,{children:["Persists the aliases so the controller UI and the dictionary form of ",(0,t.jsx)(n.code,{children:"LCC.log"})," can use them.",(0,t.jsx)(n.br,{}),"\n","The array is converted to ",(0,t.jsx)(n.code,{children:"{ log1 = aliases[1], ... }"})," and saved.",(0,t.jsx)(n.br,{}),"\n","Only six channels are supported; extra entries are ignored."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-lua",children:'LCC.set_log_aliases({\n    "Status", "Progress", "Error", "Debug", "Spare 1", "Spare 2"\n})\n'})})]})}function d(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}}}]);