Logs

This guide will walk you through the process of updating the logging levels for the unity-sh and chat-sh services in your Docker Compose file.

Understanding Logging Levels

Logging levels act like filters for the information your application outputs. Each level includes all the levels that come after it in terms of severity. The common log levels are:

  • DEBUG: The most detailed level. Use this to see all the information for troubleshooting and debugging. It includes detailed steps and variable values.

  • INFO: This is the default level. It shows general application flow, key events, and progress messages. This is a good level for normal operation.

  • WARN: Indicates a potential issue or unexpected event that doesn't immediately stop the application but might require attention.

  • ERROR: Signifies a serious problem that has prevented a specific function from working.

How to Modify the Log Levels

To change the log level, you need to edit your docker-compose.yml file. In this file, each service has an environment section where variables are set.

  1. Open the /var/ascertia/unityPortaldocker-compose.yml file in your preferred text editor.

  2. Locate the unity-sh service block.

  3. Find the line starting with: - LOG_LEVEL=.

  4. Change to your desired level, such as DEBUG or ERROR. For example, to set it to DEBUG, you would change the line to:

    - LOG_LEVEL=DEBUG
  5. Repeat this process for the chat-sh service block, changing its LOG_LEVEL as well if needed.

  6. Ensure you restart the services for the changes to take effect: Restarting Services

Last updated