dndeus/module-logger

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 23

Language:CSS

Type:magento2-module

1.0.2 2020-06-07 22:54 UTC

README

composer require dndeus/module-logger

Magento installation

bin/magento module:enable Dndeus_Logger

bin/magento setup:upgrade

Usage

$logger = new Logger();

$data = ['name' => 'Test'];

$logger->forType('products') // this must be snakecase sting or single word
       ->success($data,'Processing the given data was successful');

$logger->forType('products_data') // this must be snakecase sting or single word
       ->failed($data,'Processing the given data failed for whatever reason');

View the logs in your magento admin area