product:logs

Stream logs from the active product’s Docker Compose services.


Usage

splent product:logs [--dev] [--prod] [--tail N] [--no-follow] [--service SERVICE]

Examples

Follow all logs (default):

splent product:logs

Show the last 100 lines and exit:

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

Follow logs from a specific service:

splent product:logs --service web

Options

Option Description
--dev Use the development Docker Compose file.
--prod Use the production Docker Compose file.
--tail N Number of lines to show from the end (default: 50).
--no-follow Print a snapshot and exit instead of following.
--service Restrict output to a specific service name.

If neither --dev nor --prod is provided, SPLENT_ENV is used (defaults to dev).


Description

Wraps docker compose logs for the active product. By default it follows new output (equivalent to docker compose logs -f). Press Ctrl+C to stop.

Use --service to limit output to one container when debugging a specific component.


Back to top

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