Mercurial > epgrec.yaz
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recLog.inc.php Sun Mar 21 03:15:00 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 ) { + // + } +} + +?>