IT.info/개발
[Codeigniter]에러메세지
뒤범벅.SI
2015. 6. 24. 15:41
에러메시지
log_message(‘error’, ‘Some variable did not contain a value.’);
Error 메세지 : PHP 에러나 사용자 에러등 진짜 에러 메시지.
log_message(‘debug’, ‘Some variable was correctly set’);
Debug 메세지: 디버그를 도와주는 메세지.예를 들어, 클래스가 초기화되면 debugging 정보로 파일에 기록할 수 있습니다.
log_message(‘info’, ‘The purpose of some variable is to provide some value.’);
Informational 메세지 : 이 메시지는 가장 우선순위가 낮은 메세지로 단순히 어떤 프로세스에 대한 메세지를 제공합니다. CodeIgniter 는 Info 메세지를 작성하지않습니다만, 원하시는 메세지를 스스로 기록하실수있습니다.
<< config파일에서 $config[‘log_threshold’]을 확인해야 한다.>>
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages| 3 = Informational Messages
| 4 = All Messages