D
D
dys4ry2012-11-15 13:29:50
PHP
dys4ry, 2012-11-15 13:29:50

Redirecting errors to a file in ModX

Hello!
By default, all event and ModX manager logs are written to mysql. Maybe someone will tell you how to redirect logging to a separate file on the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Klimchuk, 2012-11-15
@Alroniks

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.

D
dys4ry, 2012-11-15
@dys4ry

evolution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question