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.
Open the
/var/ascertia/unityPortaldocker-compose.yml
file in your preferred text editor.Locate the
unity-sh
service block.Find the line starting with:
- LOG_LEVEL=
.Change to your desired level, such as
DEBUG
orERROR
. For example, to set it toDEBUG
, you would change the line to:- LOG_LEVEL=DEBUG
Repeat this process for the
chat-sh
service block, changing itsLOG_LEVEL
as well if needed.Ensure you restart the services for the changes to take effect: Restarting Services
Last updated