Explore application logs

yarn logs <scope> or npm run logs <scope>

Gives simple access to logs from Nginx, Redis, MySQL and ElasticSearch containers and Magento.

Before magento-scripts version 1.4.1 this command will attach logs from chosen service to your terminal so to exit press CTRL + C. To attach logs use option -f.

Available scopes

  • mysql

  • nginx

  • redis

  • elasticsearch

  • magento

Command options

--details

Show extra details provided to logs

yarn logs nginx --details # for Yarn
npm run logs nginx -- --details # for NPM

--timestamps, -t

Show timestamps

--follow, -f

Follow log output

--since

Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)

--until

Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)

Usage example:

Last updated