Mercurial > epgrec.yaz
comparison recLog.inc.php @ 155:190a3c46611d
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 30 Mar 2010 00:37:47 +0900 |
parents | 64b60603d7df |
children |
comparison
equal
deleted
inserted
replaced
151:43f74519bd52 | 155:190a3c46611d |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 define( "EPGREC_INFO" , 0 ); | 3 define( "EPGREC_INFO" , 0 ); |
4 define( "EPGREC_WARN" , 1 ); | 4 define( "EPGREC_WARN" , 1 ); |
5 define( "EPGREC_ERROR", 2 ); | 5 define( "EPGREC_ERROR", 2 ); |
6 | |
7 class RecException extends Exception { | |
8 | |
9 private $level = EPGREC_INFO; | |
10 | |
11 public function __construct( $mesg, $l = EPGREC_INFO ) { | |
12 parent::__construct( $mesg ); | |
13 $this->level = $l; | |
14 } | |
15 | |
16 public function getLevel() { | |
17 return $this->level; | |
18 } | |
19 } | |
6 | 20 |
7 | 21 |
8 function reclog( $message , $level = EPGREC_INFO ) { | 22 function reclog( $message , $level = EPGREC_INFO ) { |
9 | 23 |
10 try { | 24 try { |