config.php 2.2 KB
<?php
// $__PATH_to_mcClasses;


if(!isset($_LOSP_DEV)) {
	/**
	 * @var boolean -- activate the dev modus
	 */
	$_LOSP_DEV 		= 	true;
}

if(!isset($__mc_D_LOGFILE)) {
	/**
	 * @todo @since 20110325 die vars müssen eigentlich hier aus __mc raus ... da sie freeSN abhängig sind @author f@mensch.coop
	 */
	if(isset($_TREE) && $_TREE) {
		$string = $_TREE;
	} else if(isset($_PAGE_NAME) && $_PAGE_NAME) {
		$string = $_PAGE_NAME;
	} else {
		$string = 'no';
	}


	/**
	 * @var string -- file for the D Output
	 */
	$__mc_D_LOGFILE 		= 	$__BASEPATH_EX.'log/mc.'.$string.'.DEV_D.log';
//	
}

if(!isset($__mc_D_SCREENOUTPUT)) {
	/**
	 * @var boolean -- activate the D Output on screen
	 */
	$__mc_D_SCREENOUTPUT 	= 	false;
}

if(!isset($__mcPerformance_backtrace)) {
	/**
	 * @var boolean -- activate the D Output on screen
	 */
	$__mcPerformance_backtrace 	= 	true;
}

if(!isset($__mc_ERRORHANDLER)) {
	/**
	 * @var boolean -- is true use the mcErrorHandler
	 */
	$__mc_ERRORHANDLER = true;
}

if(!isset($__mc_DEPRECATED)) {
	/**
	* @var int
	 * if you want @deprecated functions since a date (format: yyyymmdd)
	 */
	$__mc_DEPRECATED = 20110201;
}


if(!isset($__mc_Report)) {
	/**
	 * @var array -- configuration of the report (mcNoticeEvent, mcErrorEvent, Error)
	 */
	$__mc_Report = array(
		'mcNoticeEvent' => array(
			'toScreen' => array(),
			'toFile' => array('file' => 'log/NoticeEvent.log')
		),
		'mcErrorEvent' => array(
			'toScreen' => array(),
			'toFile' => array(
					'file' => 'log/ErrorEvent.log',
					'writemode' => 'a',
					'reset' => false,
			),
//			'toMail' => array(
//				'mail' => 'mail@localhost.tld',
//				'subject' => 'Error:'
//			)
		),
		'mcException' => array(
			'toScreen' => array(),
			'toFile' => array(
					'file' => 'log/Exception.log',
					'writemode' => 'a',
					'reset' => false,
			),
//			'toMail' => array(
//				'mail' => 'mail@localhost.tld',
//				'subject' => 'Error:'
//			)
		),
		'Error' => array(
			'toScreen' => array('text' => 'ERROR Error ERROR Error ERROR'),
			'toFile' => array(
					'file' => 'log/Error.config.log',
					'writemode' => 'a',
					'reset' => false,
			),
//			'toMail' => array(
//				'mail' => 'mail@localhost.tld',
//				'subject' => 'Error:'
//			)
		),
	);
}
?>