Add log using file_put_contents
This line of code can be use anywhere for adding or printing a log, For example in magento you have to add dependencies and all to adding a log and this is what time consuming. So, here follow the line of code and change the file name which will be created as new log file.