Codeigniter Logging
Codeigniter Logging
Ref.] https://opentutorials.org/course/697/3958
Ref.] https://opentutorials.org/course/697/3958
- log 설명
- 어플리케이션의 상태를 관찰할 수 있도록 어플리케이션이 제공하는 정보
- codeigniter는 log를 원하는 디렉토리에 출력해주는 기능을 가지고 있음.
- 설정
- config.php 수정
- 경로
/Applications/mampstack-5.6.20-0/apache2/htdocs/application/config/config.php
- 수정 내용
/* |{ 0 : logging 비활성화 |, 1 : error 로그만 기록 |, 2 : debug 로그도 기록 |, 3 : info 로그도 기록 |, 4 : all 메시지 기록 } */ $config['log_threshold'] = 숫자
- 경로
- config.php 수정
- 사용
- 형태
log_message(log type, log message);
- 예제
log_message('debug', 'article 초기화');
- 형태