Download the PHP package praxigento/mage2_ext_logging without Composer
On this page you can find all versions of the php package praxigento/mage2_ext_logging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download praxigento/mage2_ext_logging
More information about praxigento/mage2_ext_logging
Files in praxigento/mage2_ext_logging
Download praxigento/mage2_ext_logging
More information about praxigento/mage2_ext_logging
Files in praxigento/mage2_ext_logging
Vendor praxigento
Package mage2_ext_logging
Short Description Monolog Cascade integration to Magento 2.
License MIT
Homepage https://github.com/praxigento/mage2_ext_logging
Package mage2_ext_logging
Short Description Monolog Cascade integration to Magento 2.
License MIT
Homepage https://github.com/praxigento/mage2_ext_logging
Please rate this library. Is it a good library?
Informations about the package mage2_ext_logging
Monolog Cascade integration to Magento 2
Installation
Add to your project's composer.json
:
"require": {
"praxigento/mage2_ext_logging": "~0.1"
}
Usage
Default configuration file is in var/log/logging.yaml
(see src/etc/di.xml
).
Get logger with ObjectManager:
public function __construct(
\Psr\Log\LoggerInterface $logger,
...
) {
$this->_logger = $logger;
...
}
Then log your messages:
$this->_logger->info("'Get account' operation is called.");
Configuration sample
disable_existing_loggers: true
formatters:
dashed:
class: Monolog\Formatter\LineFormatter
format: "%datetime%-%channel%.%level_name% - %message%\n"
handlers:
debug:
class: Monolog\Handler\StreamHandler
level: DEBUG
formatter: dashed
stream: /.../var/log/cascade_debug.log
system:
class: Monolog\Handler\StreamHandler
level: INFO
formatter: dashed
stream: /.../var/log/cascade_system.log
exception:
class: Monolog\Handler\StreamHandler
level: EMERGENCY
formatter: dashed
stream: /.../log/cascade_exception.log
processors:
web_processor:
class: Monolog\Processor\WebProcessor
loggers:
main:
handlers: [debug, system, exception]
processors: [web_processor]
All versions of mage2_ext_logging with dependencies
PHP Build Version
Package Version
The package praxigento/mage2_ext_logging contains the following files
Loading the files please wait ....