Query Docker container logs
You can use the docker logs
commands to query Docker container logs.
To query container logs, use the docker logs
command. For more information about the docker logs
command, see the Docker Documentation.
To see the sysout or syserr logs from a Docker container:
docker logs <container_id>
HCL DevOps Test Integrations and APIs (Test Integrations and APIs) logs at warning level by default. Along with modifying the logging.properties
in the container to change the log settings, you can also pass an environment variable when running the container to set a logging level for Test Integrations and APIs:-e RUNTESTS_LOG_LEVEL=ERROR
-e RUNTESTS_LOG_LEVEL=WARN
-e RUNTESTS_LOG_LEVEL=INFO
-e RUNTESTS_LOG_LEVEL=DEBUG
For more information about the environment variable that you can use to set the logging level for Test Integrations and APIs, see Running stubs in a Docker container.