monoceros logs
Tails the named workbench’s logs: a Compose service, or a long-running app you started inside the container. Follows by default.
monoceros logs <name> [<app>] [--target <t>] [--no-follow]With no second argument it follows all Compose services. The second argument is
either an app (a path under projects/ that has a
launch config) or a Compose service
name (e.g. postgres):
- an app tails
logs/<app>/<target>.log, with--targetselecting the configuration (defaults to the app’sdefault, or its only one); - anything else is treated as a Compose service.
Inside the container
Section titled “Inside the container”The build agent (which has no host monoceros) tails the same app log with the
in-container runner:
monoceros-ctl logs <app> [--target <t>]The host command above is just a docker exec onto exactly this - one
mechanism, two entry points. See
Long-running app servers.
Examples
Section titled “Examples”monoceros logs acme # follow all servicesmonoceros logs acme postgres # just one Compose servicemonoceros logs acme web # the "web" app's default targetmonoceros logs acme web --target worker # a specific targetmonoceros logs acme --no-follow # one-shot dump, then exitOptions
Section titled “Options”--target <t>- when the second argument is an app, which launch target’s log to tail. Defaults to the app’sdefaulttarget, or its only one.--no-follow- print what is there and exit instead of streaming. Following is the default (the explicit alias is-f).
Behavior
Section titled “Behavior”- Follows by default, like
tail -f; Ctrl+C stops following. - Read-only. It streams logs and changes nothing.
See also
Section titled “See also”monoceros list-apps- the apps and targets whose logs you can tail.monoceros status- check what is running first.- Long-running app servers - the launch-config mechanism.