Logging Levels
This section explains how to modify logging levels for better debugging and monitoring of the infrastructure.
Available Logging Levelsâ
- DEBUG
- INFO
- WARN
- ERROR
- FATAL
Logging levels can be adjusted in two ways: by setting the environment variable GOVERNIFY_LOG_LEVEL
before running the microservice or through the admin panel of the render interface.
Environment Variableâ
Before launching a microservice equipped with Governify Commons, you can set the logging level by using the environment variable 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 .env
file used by a Docker Compose setup.
Example of setting the logging level to debug
before running a microservice:
export GOV_LOG_LEVEL=debug && npm start
Admin Panelâ
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. To modify the logging level of a microservice, follow these steps:
- Access the render frontend at
http://localhost:5100
orui.buejay.[org_domain]
. - Click on
Admin UI
in the top right corner. - Navigate to the
Commons
section. - For each microservice, click the edit button and select the desired logging level from the dropdown menu.