Wiki

Articles tagged with "logging"X
Displaying 1-9 of 9 result(s).

Logging to Heroku's logs from Yii

Created 22 days ago by aarondfrancisHow-tos0 comments – viewed 1,022 times – ( +2 )
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines:
tags: heroku, Logging

Access log output from unit tests

Created 11 months ago by MikeTips2 comments – viewed 3,062 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.

How to re enable logging during unit testing

Created about a year ago by AsgarothHow-tos1 comment – viewed 6,997 times – ( +7 )
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,485 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.

ChromePHP for Yii

Created 2 years ago by imeheszTips0 comments – viewed 7,256 times – ( +2 / -1 )
ChromePHP is a console logging extension for Google Chrome.

How to log and debug variables using CWebLogRoute

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 28,914 times – ( +13 )
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 3 years ago by mindplayTutorials2 comments – viewed 12,362 times – ( +6 )
During development, it's often very handy to have SQL logging and profiling.
tags: Logging

How to log context information to logger (session id, user, ...)

Created 3 years ago by olafureTutorials0 comments – viewed 8,279 times – ( +2 )
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

How to log changes of ActiveRecords?

Created 4 years ago by pfthTutorials5 comments – viewed 18,797 times – ( +27 / -2 )
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging