I understand that Craft CMS generates a web.log file for you but is there a way to do a custom.log?
I have a module and a controller where I want to send specific information from my controller to a custom.log but I can't find any documentation about it.
Thank you very much for your help.
For instance:
LogToFile :: info ($ message, 'my-plugin-handle');What is
my-plugin-handle? Because in my case I am not using a plugin, I am using a module. So if my module is called: custommodule it isLogToFile :: info ($ message, 'custom-module');Sorry for the questions but I did see the post but it was not clear to me where you indicate the new name of the .log
Thanks!
– suhkha Sep 19 '21 at 17:33