Wiki

Articles tagged with "debug"X
Displaying 1-2 of 2 result(s).

Access log output from unit tests

Created 11 months ago by MikeTips2 comments – viewed 2,985 times – ( +2 )
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,290 times – ( +12 )
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.