Mercurial > epgrec.yaz
comparison recLog.inc.php @ 137:a18df712fc7e
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 21 Mar 2010 03:15:00 +0900 |
parents | 9c5e597ef6c6 |
children | 5b192e94f49d |
comparison
equal
deleted
inserted
replaced
119:b172a0b1ea48 | 137:a18df712fc7e |
---|---|
1 <?php | |
2 | |
3 define( "E_INFO" , 0 ); | |
4 define( "E_ERROR", 2 ); | |
5 | |
6 | |
7 function reclog( $message , $level = E_INFO ) { | |
8 | |
9 try { | |
10 $log = new DBRecord( LOG_TBL ); | |
11 | |
12 $log->logtime = date("Y-m-d H:i:s"); | |
13 $log->level = $level; | |
14 $log->message = $message; | |
15 } | |
16 catch( Exception $e ) { | |
17 // | |
18 } | |
19 } | |
20 | |
21 ?> |