/** * Exception logger * * Log the exception depending on the application config * * @param object The exception */ public static function log($e) { if (is_callable($logger = Config::error('log'))) { call_user_func($logger, $e); } }