| 제목 | 로그파일 남기기.. | ||
|---|---|---|---|
| 글쓴이 | 당근병아리 | 작성시각 | 2011/08/11 14:23:14 | 
| 
                         | 
                |||
| 
                         /*
 |-------------------------------------------------------------------------- 
| Error Logging Threshold 
|-------------------------------------------------------------------------- 
| 
| If you have enabled error logging, you can set an error threshold to 
| determine what gets logged. Threshold options are: 
| You can enable error logging by setting a threshold over zero. The 
| threshold determines what gets logged. Threshold options are: 
| 
| 0 = Disables logging, Error logging TURNED OFF 
| 1 = Error Messages (including PHP errors) 
| 2 = Debug Messages 
| 3 = Informational Messages 
| 4 = All Messages 
| 
| For a live site you'll usually only enable Errors (1) to be logged otherwise 
| your log files will fill up very fast. 
| 
*/ 
$config['log_threshold'] = 1; 
/* 
|-------------------------------------------------------------------------- 
| Error Logging Directory Path 
|-------------------------------------------------------------------------- 
| 
| Leave this BLANK unless you would like to set something other than the default 
| application/logs/ folder. Use a full server path with trailing slash. 
| 
*/ 
$config['log_path'] = '/home/test/www/test/logs'; 
/* 
|-------------------------------------------------------------------------- 
| Date Format for Logs 
|-------------------------------------------------------------------------- 
| 
| Each item that is logged has an associated date. You can use PHP date 
| codes to set your own date formatting 
| 
*/ 
$config['log_date_format'] = 'Y-m-d H:i:s 
                        
                    이렇게 하고나서 폴더에 권한을 주고나며 자동적으로 로그파일이 생성 하는 것이 아닌가요.. 그리고 에러 페이지 때문에 하얀페이지를 나올때 컨트룰 되는 방법이 없을까요..  | 
                |||
| 다음글 | 혹시 library 로 mysql외의 다은 db 연결 ... (2) | ||
| 이전글 | 서브디렉토리가 루트일시 경로 문제 (1) | ||
| 
                             
                                변종원(웅파)
                                /
                                2011/08/11 17:36:26 /
                                추천
                                0
                             
                             | 
                    
| 
                             
                                당근병아리
                                /
                                2011/08/12 20:26:00 /
                                추천
                                0
                             
                            
                                답변 감사합니다. 
                        하지만 안되엇습니다. ㅜㅡ;; 슬퍼요...  | 
                    
| 
                             
                                변종원(웅파)
                                /
                                2011/08/12 21:07:44 /
                                추천
                                0
                             
                            
                                 log_path를 빈값으로 해서 logs 디폴트 디렉토리에 정상적으로 쌓이는지 확인해보시기 바랍니다. 
                        디렉토리 권한 문제일 것 같은데요.. 웹이라서 707 주셔야합니다. (상위디렉토리도)  | 
                    
www 디렉토리에 index.php파일이 위치한다면
/test/logs 이렇게 선언하시기 바랍니다.
그리고 전체 디렉토리의 쓰기 권한도 확인해보시구요.