Plone sites contain error log service which is located as error_log in the site root. It logs site exceptions and makes the tracebacks accessible from Plone control panel and ZMI.
The service is somewhat archaid and can log exceptions only, no plain error messages.
Site error log service source code.
TODO