Using Virtual Types for Saving Custom Logs in Magento 2.0

June 20, 2016 / Posted in Magento, Magento 2.0 by Artsem Miklashevich
Using Virtual Types for Saving Custom Logs in Magento 2.0
Download PDF

When you are in the process of development, you may need to save your logs a separate file. This could be easily done in Magento 1: use static method Mage::log() with the required file name and text. However, you are no longer able to do the same in Magento 2 — it uses Monolog as the main logging tool which follows the logging standard of PSR-3 . Monolog doesn’t allow to set a new filepath where you want to log a message. Monolog saves log file path during handlers initialization and does not allow to modify filename later. However, it is possible to add one more handler to Monolog, for example, like this:

(more…)

7 Must-Follow eCommerce Design Trends Revealed

June 14, 2016 / Posted in Magento 2.0, Prestashop by Nick Campbell
7 Must-Follow eCommerce Design Trends Revealed
Download PDF

eCommerce is getting more and more popular among modern-day buyers, as most of them prefer shopping from their comfort zones and on the go. The more people make purchases online, the more merchants move their products to the web, the severer competition they withstand there. The driving force of cyber success is design that is compliant with modern trends. An outdated store interface will never bring you desirable outcomes, so make sure you go trendy online. (more…)