Mercurial > epgrec.yaz
view recLog.inc.php @ 164:254d8a21bf36
fix: 予約済みの未実行録画にrecomplete.phpが必要なので戻した
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 06 Apr 2010 11:03:45 +0900 |
parents | 64b60603d7df |
children |
line wrap: on
line source
<?php define( "EPGREC_INFO" , 0 ); define( "EPGREC_WARN" , 1 ); define( "EPGREC_ERROR", 2 ); class RecException extends Exception { private $level = EPGREC_INFO; public function __construct( $mesg, $l = EPGREC_INFO ) { parent::__construct( $mesg ); $this->level = $l; } public function getLevel() { return $this->level; } } function reclog( $message , $level = EPGREC_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 ) { // } } ?>