Mercurial > epgrec.yaz
diff recLog.inc.php @ 135:9c5e597ef6c6
mod: ログ機能を追加
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sat, 20 Mar 2010 23:59:01 +0900 |
parents | |
children | 5b192e94f49d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recLog.inc.php Sat Mar 20 23:59:01 2010 +0900 @@ -0,0 +1,21 @@ +<?php + +define( "E_INFO" , 0 ); +define( "E_ERROR", 2 ); + + +function reclog( $message , $level = E_INFO ) { + + try { + $log = new DBRecord( LOG_TBL ); + + $log->logtime = date("Y-m-d H:i:s"); + $log->level = $level; + $log->message = $message; + } + catch( Exception $e ) { + // + } +} + +?>