When developing webservices (ie API) code, it appears that there is no way to log errors that occur (through the normal J! logging system).
I have been able to make it happen by manually putting the name of my component into the parameters column of the com_actionlogs row in the extensions table. This is obviously not satisfactory, nor does it point to an easy solution imho.
Perhaps an entry in that logging control area could offer a multiselect for components (perhaps excluding the core ones)? Selected components would then be included in "everything" logging..
Modify a line of php code in a /api/components area so it will throw an error.
Set logging to "Log almost everything".
Trigger the faulty code.
Stack trace &tc in the log.
No persistent error reporting at all.
J! 4.2.5, Linux, Apache,
Labels |
Added:
No Code Attached Yet
|
Title |
|
Labels |
Added:
?
|