久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Laravel 5 錯誤報告抑制

Laravel 5 Error Reporting Suppression(Laravel 5 錯誤報告抑制)
本文介紹了Laravel 5 錯誤報告抑制的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在 Laravel 4 中,很容易抑制 E_NOTICE 消息;我似乎無法做到這一點,因為如果我添加

In Laravel 4, it was easy enough to suppress E_NOTICE messages; I can't seem to be able to do this because if I add

error_reporting(E_ALL ^ E_NOTICE) 

在任何地方它都會被覆蓋.

anywhere it simply gets overridden.

這似乎發生在這里:(index.php)

This seems to happen around here: (index.php)

$response = $kernel->handle(
    $request = IlluminateHttpRequest::capture()

);

我在 Exceptions/Handler.php 中添加了自定義代碼來處理更多漂亮"的異常/錯誤視圖,但我正在努力關閉通知(我根本不希望這些中的任何一個被通知觸發)

I have added custom code to handle more "pretty" views of exceptions/errors within Exceptions/Handler.php but I'm struggling to switch off notices (I don't want any of these firing off with notices at all)

  • 是的,該問題應該修復,我知道這一點,但是在這種情況下,我更希望通知不會在現場轟炸應用程序(我有一個自定義日志記錄解決方案為此),并且在開發中我希望顯示通知.
  • Yes, the issue should be fixed, I'm aware of this, however this is a case where I'd prefer the notices NOT bombing the app on live (I have a custom logging solution for this), and on dev I'd like the notice to show.

推薦答案

在 Laravel 5 中,我們可以在 AppServiceProviders::boot 里面設置 error_reporting(E_ALL ^ E_NOTICE)方法:

In Laravel 5, we can set error_reporting(E_ALL ^ E_NOTICE) inside the AppServiceProviders::boot method:

public function boot()
{
    //set whatever level you want
    error_reporting(E_ALL ^ E_NOTICE);
} 

這篇關于Laravel 5 錯誤報告抑制的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Magento products by categories(按類別劃分的 Magento 產品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 日韩成人在线视频 | 一区二区三区影院 | www.日韩欧美 | 国产一区二区在线看 | 黑人巨大精品欧美一区二区免费 | 天天干天天爱天天操 | 国产在线精品一区二区三区 | 中文字幕a√ | 91久操视频 | 中文字幕一区二区三区在线观看 | 伊人免费在线观看高清 | 色欧美综合 | 久久午夜视频 | 日韩欧美久久 | 91av免费看 | 久久久精 | 欧美小视频在线观看 | 狠狠操婷婷 | 欧洲精品一区 | 91看片免费版| 99热首页| 色综网| 国产精品婷婷 | 国产999精品久久久久久绿帽 | 天天艹天天干天天 | 国产精品一区免费 | 亚洲人成在线观看 | 国产精品视频久久久久久 | 久久69精品久久久久久国产越南 | 久久9视频 | 免费黄网站在线观看 | 色综合色综合 | 亚洲黄色av网站 | 在线免费观看成人 | 欧洲一区二区在线 | 一区二区av| 一级做a爰片性色毛片16 | 不卡一区二区三区四区 | 精精国产xxxx视频在线播放7 | av免费网站在线 | av男人的天堂在线 |