dndeus / module-logger
Package info
github.com/dndeus/magento-2-logger
Language:CSS
Type:magento2-module
pkg:composer/dndeus/module-logger
1.0.2
2020-06-07 22:54 UTC
Requires
- doctrine/dbal: ^2.10
- illuminate/database: ^6
- illuminate/pagination: ^6
This package is auto-updated.
Last update: 2026-06-08 03:05:44 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');