For those that may not be aware, the following is really useful when debugging PHP code:
You just need to ensure that in your `data\config.php`, the relevant logging `level` is enabled for your output:
Then you just need to check your log file (in the above path) for the messages. This has helped us massively!
Available options are:
Code:
$GLOBALS['log']->debug('Here is my variable:', [$variable]);
Code:
'logger' => [ 'path' => 'data/logs/espo.log', 'level' => 'DEBUG', 'rotation' => true, 'maxFileNumber' => 30 ],
Available options are:
Code:
DEBUG INFO NOTICE WARNING ERROR CRITICAL
Comment