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 OneTest™ API 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 HCL OneTest API:
-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 HCL OneTest API, see Publishing stubs to Docker: Running in a Docker container.

Feedback