Quickly view the logs of multiple containers, with logs colorized by container. Bolded lines are from stderr.
Binary downloads of the dockerlogs utility can be found on the releases page.
Go users can use
go install github.com/ruckc/dockerlogs@v0
dockerlogs will by default tail all containers, and their entire log.
dockerlogs
Only tail the api and database containers, last 10 lines.
dockerlogs -t 10 api database
Run dockerlogs -h
for usage
$ dockerlogs -h
Usage:
dockerlogs [OPTIONS] [containers...]
tails multiple containers concurrently
Application Options:
-t, --tail= Number of lines to show from the end of the logs (default: all)
Help Options:
-h, --help Show this help message