34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
How to re enable logging during unit testing
Comparing
#1
with
#2
Revision #2 was created by
Asgaroth
on Nov 14, 2011, 9:38:08 PM.
Uncommented a line that was commented in my own local file for personal purposes
« Previous (#1)
Content
[...]
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require_once($yiit);
//
require_once(dirname(__FILE__).'/WebTestCase.php');
Yii::createWebApplication($config);
// automatically send every new message to available log routes
Yii::getLogger()->autoFlush = 1;
// when sending a message to log routes, also notify them to dump the message
[...]