mageguide/mglogger 1.0.2

Adds Custom Logger Functionality mageguide.log

Type

magento2-module

License

OSL-3.0, AFL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Mglogger

Adds Custom Logger Functionality (mageguide.log)

Usage example:

class mgLoggerExample
{
    /**
     * Logging instance
    */
    protected $_mglogger;

    /**
     * Constructor injection
     */
    public function __construct(
        \MageGuide\Mglogger\Logger\Logger $mglogger
    ) {
        $this->_mglogger = $mglogger;
    }

    /* Some function to call logger */
    public function doSomething()
    {
        $this->_mglogger->info('Info Test');
        $this->_mglogger->alert('Alert Test');
        $this->_mglogger->critical('Critical Test');
        $this->_mglogger->emergency('Emergency Test');
        $this->_mglogger->error('Error Test');
        $this->_mglogger->notice('Notice Test');
        $this->_mglogger->warning('Warning Test');
    }
}