Explore application logs
yarn logs <scope>
or npm run logs <scope>
yarn logs <scope>
or npm run logs <scope>
Gives simple access to logs from Nginx, Redis, MySQL and ElasticSearch containers and Magento.
Available scopes
mysql
nginx
redis
elasticsearch
magento
Command options
--details
--details
Show extra details provided to logs
yarn logs nginx --details # for Yarn
npm run logs nginx -- --details # for NPM
--timestamps, -t
--timestamps, -t
Show timestamps
yarn logs nginx --timestamps # for Yarn
npm run logs nginx -- --timestamps # for NPM
--follow, -f
--follow, -f
Follow log output
yarn logs nginx --follow # for Yarn
npm run logs nginx -- --follow # for NPM
--since
--since
Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
yarn logs nginx --since=2s # for Yarn
npm run logs nginx -- --since=2s # for NPM
--until
--until
Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)
yarn logs nginx --until=2s # for Yarn
npm run logs nginx -- --until=2s # for NPM
Usage example:
yarn logs nginx
> ... # nginx logs
# ctrl + c
# this is not alias, but rather service name matching
yarn logs n # or n
> ... # nginx logs
# and for mysql
yarn logs m # or mysql
> ... # mysql logs
# and for magento
yarn logs ma # or magento
> ... # magento logs
Last updated