view recLog.inc.php @ 136:6754b6aa50cf

mod: ログ機能のためにconfig.phpを変更
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sun, 21 Mar 2010 00:00:58 +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 ) {
		// 
	}
}

?>