Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.3
        • PHP 8.3 with Magento 2.4 extensions
        • PHP 8.3 with XDebug
          • PHP 8.3 with XDebug with Magento 2.4 extensions
      • PHP 8.2
        • PHP 8.2 with Magento 2.4 extensions
        • PHP 8.2 with XDebug
          • PHP 8.2 with XDebug with Magento 2.4 extensions
      • PHP 8.1
        • PHP 8.1 with Magento 2.4 extensions
        • PHP 8.1 with XDebug
          • PHP 8.1 with XDebug with Magento 2.4 extensions
      • PHP 7.4
        • PHP 7.4 with Magento 2.4 extensions
        • PHP 7.4 with XDebug
          • PHP 7.4 with XDebug with Magento 2.4 extensions
      • PHP 7.3
        • PHP 7.3 with Magento 2.4 extensions
        • PHP 7.3 with Magento 2.3 extensions
        • PHP 7.3 with XDebug
          • PHP 7.3 with XDebug with Magento 2.4 extensions
          • PHP 7.3 with XDebug with Magento 2.3 extensions
      • PHP 7.2
        • PHP 7.2 with Magento 2.3 extensions
        • PHP 7.2 with XDebug
          • PHP 7.2 with XDebug with Magento 2.3 extensions
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • yarn logs <scope> or npm run logs <scope>
  • Available scopes
  • Command options
  • Usage example:

Was this helpful?

  1. Getting started
  2. Available commands

Explore application logs

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

Gives simple access to logs from PHP, Nginx, SSL-Terminator, Varnish, Redis, MariaDB and ElasticSearch containers and Magento.

Available scopes

  • mariadb

  • nginx

  • ssl-terminator

  • redis

  • elasticsearch

  • magento

  • php

  • varnish

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

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

--follow, -f

Follow log output

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

--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

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 ng # or nginx

> ... # nginx logs

# for ssl-terminator
yarn logs ssl

> ... # ssl-terminator logs

# and for mariadb
yarn logs ma # or mariadb

> ... # mariadb logs

# and for magento
yarn logs mag # or magento

> ... # magento logs
PreviousEnter application CLINextExecute commands in Docker containers

Last updated 2 years ago

Was this helpful?