Several questions about how to print logs in both application and plugin.
I found myself struggling at printing log while developing the code.
I have set below to true
$Configuration['Garden']['Errors']['LogEnabled'] = TRUE; $Configuration['Garden']['Errors']['LogFile'] = 'log/error_log';
However, I examine both the vanilla and vanilla-docker folders and can't find the log file. Anyone know where does the error_log file locate? Or maybe I did something wrong?
AFAIK, Logger::debug() can not be used in plugin. May I know what is the recommended way to print log in the plugin?
Appreciate any information. Thanks.