Suppress Trace in error log


#1

How can I suppress the trace in error logs?

I have set 'displayErrorDetails' => false and errors are pushed to php_error.log. But I only need the first part of error messages and not the part starting with Trace: #0 ... .


#2

Mostly you will need to overwrite the default Error handlers so it will pass only what you need.


#3

Thanks zaher, worked. :slight_smile: