WEB언어/CodeIgniter
CodeIgnite 에러 로그 보기 설정
saltdoll
2019. 1. 26. 09:53
반응형
PHP 플레임웍인 CodeIgniter에서 에러 Log정보를 보기를 설정
Config파일을 설정을 변경하면 됩니다.
/application/config/config.php 파일 수정
로그보기 = 1 / 로그 보지 않기 = 0 |
$config['log_threshold'] = 1; |
CodeIgniter has some error logging functions built in.
- Make your /application/logs folder writable
- In /application/config/config.php set
$config['log_threshold'] = 1;
or use a higher number, depending on how much detail you want in your logs - Use
log_message('error', 'Some variable did not contain a value.');
- To send an email you need to extend the core CI_Exceptions class method
log_exceptions()
. You can do this yourself or use this. More info on extending the core here
See http://www.codeigniter.com/user_guide/general/errors.html
출처: https://stackoverflow.com/questions/3209807/how-to-do-error-logging-in-codeigniter-php
반응형