product:logs

Introduction

product:logs follows the logs of your product’s own containers, the Compose project <product>_<env>. It needs a selected product (SPLENT_APP). Press Ctrl+C to stop.

splent product:logs

Printing the last lines and exiting

splent product:logs --tail 100 --no-follow

--tail sets how many lines to show from the end, 50 by default. --no-follow prints them and exits.


Reading one container

splent product:logs --service my_first_app_web

--service takes a Compose service of the product, such as <product>_web or <product>_db.


Reading the rest

Feature stacks are not included. Read them with docker logs <container>, and find the names with product:containers.

A deployment started with product:deploy is the <product>_deploy project, not --prod. Read it with docker logs <product>_web_deploy.


Reference

Option Description
--dev Use the development Compose file
--prod Use the production Compose file
--tail N Lines to show from the end. Default 50
--no-follow Print the lines and exit
--service NAME Only this Compose service

Without --dev or --prod it uses SPLENT_ENV, and dev when that is unset. With no compose file for the environment it exits 1.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es