0
由於某些原因,我無法獲得kohana來記錄我的自定義錯誤。這裏是代碼:Kohana日誌的問題
$log = new Log;
$log->add(Log::ERROR, 'There was a conflic with the username and/or email. UUID: '.$user['uuid'].' username: '.$user['username'].' email: '.$user['email']);
在此先感謝您的任何幫助。
檢查以確保Apache可以寫入您的日誌目錄。 – tylerl
@tylerl,如果我沒有弄錯,如果日誌文件夾不可寫,Kohana甚至不會啓動。 –
洛朗是對的。 Kohana錯誤顯示在日誌文件夾中。這是自定義的不。 – jnbdz