1"use strict";(self.webpackChunkgovernify_docs=self.webpackChunkgovernify_docs||[]).push([[4502],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>u});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=r.createContext({}),g=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},p=function(e){var t=g(e.components);return r.createElement(s.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,s=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),c=g(n),d=o,u=c["".concat(s,".").concat(d)]||c[d]||m[d]||i;return n?r.createElement(u,l(l({ref:t},p),{},{components:n})):r.createElement(u,l({ref:t},p))}));function u(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,l=new Array(i);l[0]=d;var a={};for(var s in t)hasOwnProperty.call(t,s)&&(a[s]=t[s]);a.originalType=e,a[c]="string"==typeof e?e:o,l[1]=a;for(var g=2;g<i;g++)l[g]=n[g];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},395:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>a,toc:()=>g});var r=n(7462),o=(n(7294),n(3905));const i={title:"Logging Levels",description:"Logging Levels",hide_table_of_contents:!1},l=void 0,a={unversionedId:"development/tooling/log-levels",id:"development/tooling/log-levels",title:"Logging Levels",description:"Logging Levels",source:"@site/docs/development/tooling/log-levels.md",sourceDirName:"development/tooling",slug:"/development/tooling/log-levels",permalink:"/next/development/tooling/log-levels",draft:!1,editUrl:"https://github.com/governify/governify-docs/edit/main/docs/development/tooling/log-levels.md",tags:[],version:"current",lastUpdatedBy:"Javier Fern\xe1ndez Castillo",lastUpdatedAt:1749171671,formattedLastUpdatedAt:"Jun 6, 2025",frontMatter:{title:"Logging Levels",description:"Logging Levels",hide_table_of_contents:!1},sidebar:"defaultSidebar",previous:{title:"Governify Commons Library",permalink:"/next/development/tooling/commons-library"},next:{title:"Adding New Sources",permalink:"/next/development/extending-governify/adding-new-sources"}},s={},g=[{value:"Available Logging Levels",id:"available-logging-levels",level:3},{value:"Environment Variable",id:"environment-variable",level:2},{value:"Admin Panel",id:"admin-panel",level:2}],p={toc:g},c="wrapper";
1function m(e){let{components:t,...n}=e;return(0,o.kt)(c,(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"This section explains how to modify logging levels for better debugging and monitoring of the infrastructure."),(0,o.kt)("h3",{id:"available-logging-levels"},"Available Logging Levels"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("strong",{parentName:"li"},"DEBUG")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("strong",{parentName:"li"},"INFO")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("strong",{parentName:"li"},"WARN")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("strong",{parentName:"li"},"ERROR")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("strong",{parentName:"li"},"FATAL"))),(0,o.kt)("p",null,"Logging levels can be adjusted in two ways: by setting the ",(0,o.kt)("strong",{parentName:"p"},"environment variable")," ",(0,o.kt)("inlineCode",{parentName:"p"},"GOVERNIFY_LOG_LEVEL")," before running the microservice or through the ",(0,o.kt)("strong",{parentName:"p"},"admin panel")," of the render interface."),(0,o.kt)("h2",{id:"environment-variable"},"Environment Variable"),(0,o.kt)("p",null,"Before launching a microservice equipped with Governify Commons, you can set the logging level by using the environment variable ",(0,o.kt)("inlineCode",{parentName:"p"},"GOV_LOG_LEVEL"),". This setting determines the logging level unless it is dynamically changed later. The environment variable can be set either in the terminal or in the ",(0,o.kt)("inlineCode",{parentName:"p"},".env")," file used by a Docker Compose setup."),(0,o.kt)("p",null,"Example of setting the logging level to ",(0,o.kt)("inlineCode",{parentName:"p"},"debug")," before running a microservice:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"export GOV_LOG_LEVEL=debug && npm start\n")),(0,o.kt)("h2",{id:"admin-panel"},"Admin Panel"),(0,o.kt)("p",null,"Governify offers a web interface with various panels for managing databases, tasks, and Commons configuration. Through this interface, you can update microservices and change the logging level dynamically.\nTo modify the logging level of a microservice, follow these steps:"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},"Access the render frontend at ",(0,o.kt)("inlineCode",{parentName:"li"},"http://localhost:5100")," or ",(0,o.kt)("inlineCode",{parentName:"li"},"ui.buejay.[org_domain]"),"."),(0,o.kt)("li",{parentName:"ol"},"Click on ",(0,o.kt)("inlineCode",{parentName:"li"},"Admin UI")," in the top right corner."),(0,o.kt)("li",{parentName:"ol"},"Navigate to the ",(0,o.kt)("inlineCode",{parentName:"li"},"Commons")," section."),(0,o.kt)("li",{parentName:"ol"},"For each microservice, click the edit button and select the desired logging level from the dropdown menu.")))}m.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.