simplified setup to just main.php file
added ability to skip logging when yii_debug is on