This article is about CodeShip Pro.

Reducing Log Output from Dependent Containers

You will need about one minute to read this article.

If the logs of the dependent containers are too verbose, a commmand instruction can be provided in the codeship-services.yml to add logging flags to suppress log output.

Command instructions to suppress log output will only work if the Docker image’s entrypoint is configured to receive logging flags. We recommend that you read your dependent image’s documentation for more information.

The following is a contrived example for suppressing the log output of both the elasticsearch and mysql service:

# codeship-services.yml

  image: busybox
    - elasticsearch
    - mysql

  image: elasticsearch:2.4-alpine
  command: -Des.logger.level=ERROR

    context: .
    dockerfile: Dockerfile.mysql
  cached: true
  command: --general-log=0 --log-error

Need more help?

Contact our support team or post on Stack Overflow using the tag #codeship. Did you check the status page and changelog?

There are also several code examples and sample projects available for you to get started with.

Article not helpful?

Does this article need improvement? If so, please send feedback or submit a pull request!