/** * Set a custom function to call before notifying Bugsnag of an error. * * You can use this to call your own error handling functions, or to add * custom tabs of data to each error on your Bugsnag dashboard. * * // Adding meta-data example * function before_bugsnag_notify($error) { * $error->addMetaData(array( * "user" => array( * "name" => "James" * ) * )); * } * $bugsnag->setBeforeNotifyFunction("before_bugsnag_notify"); * * @static */ public static function setBeforeNotifyFunction($beforeNotifyFunction) { return \Bugsnag_Client::setBeforeNotifyFunction($beforeNotifyFunction); }