Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For debugging I use $modx->log(E_ERROR, 'message'); Something like this. The error level can be set through the MODX constant, the second parameter is the error text or some object. The result is visible in the Reports-Error log tab. It's in Revo.
You can also set the desired level of error trapping and then all critical errors will be sent to the Apache or Enginx log, but these are php settings rather.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question