eugene-petrov/magento2-dedicated-log-file

Magento 2 snippet: dedicated log file

dev-main 2021-10-21 12:07 UTC

This package is auto-updated.

Last update: 2024-09-21 18:37:02 UTC


README

M2 Coding Standard M2 Mess Detector M2 PHPStan

Snippet_DedicatedLogFile

Description

Example of how to start using a dedicated log file

How to install

  • composer require magento2-dedicated-log-file
  • php bin/magento module:enable Snippet_DedicatedLogFile
  • php bin/magento setup:upgrade
  • php bin/magento clean:cache

Example

Go to: http://{host.name}/snippet/log/

and you will see the following form: form

Write you text and submit: form_submitted

Observe the content of the file: var/log/snippet.log