Mercurial > epgrec.yaz
comparison recLog.inc.php @ 149:5b192e94f49d
fix: 予約済み定数を使ってしまったミスを修正。エラーレベルに警告を追加
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sat, 27 Mar 2010 16:04:54 +0900 |
parents | 9c5e597ef6c6 |
children | 64b60603d7df |
comparison
equal
deleted
inserted
replaced
147:fadae5e39857 | 149:5b192e94f49d |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 define( "E_INFO" , 0 ); | 3 define( "EPGREC_INFO" , 0 ); |
4 define( "E_ERROR", 2 ); | 4 define( "EPGREC_WARN" , 1 ); |
5 define( "EPGREC_ERROR", 2 ); | |
5 | 6 |
6 | 7 |
7 function reclog( $message , $level = E_INFO ) { | 8 function reclog( $message , $level = EPGREC_INFO ) { |
8 | 9 |
9 try { | 10 try { |
10 $log = new DBRecord( LOG_TBL ); | 11 $log = new DBRecord( LOG_TBL ); |
11 | 12 |
12 $log->logtime = date("Y-m-d H:i:s"); | 13 $log->logtime = date("Y-m-d H:i:s"); |