view recLog.inc.php @ 143:42f6eb738567

mod: 積み残しを修正
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sun, 21 Mar 2010 21:54:03 +0900
parents 9c5e597ef6c6
children 5b192e94f49d
line wrap: on
line source

<?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 ) {
		// 
	}
}

?>