Mercurial > epgrec.yaz
comparison recLog.inc.php @ 150:3a6ec345ab0c
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 27 Mar 2010 23:21:25 +0900 |
parents | 5b192e94f49d |
children | 64b60603d7df |
comparison
equal
deleted
inserted
replaced
148:8f4f74463d08 | 150:3a6ec345ab0c |
---|---|
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"); |