Magento LoggerThis is the README for the Magento Logger snippet extension. FeaturesMagento Logger allows you to easily generate a Logger and be able to use it. Requirement
UseGenerate a LoggerTo generate a Logger use:
This generates a Logger that looks like:
The cursor appears in the middle of /var/log/{here}.log, write the name of the destination file here, or simply choose another file. Write to the LoggerYou must have already generated the Logger and be sure that it is accessible by your Magento program. To write to a Logger write:
This generates a line info that looks like :
The cursor appears in the middle of $logger->info({here}), write the thing to display, it must be of type string. Follow the LoggerTo follow the Logger message, execute this command in Linux:
Or in our example:
|