Configuration:

read this

Usage:

Nothing::call_module('error_handler', array(SEVERITY, ERROR_CODE, ERROR_DESCRIPTION, MODULE_NAME, [ DONT_LOG_ERROR = false ]));

Click on code to copy it