Wiki

Articles tagged with "logging", sorted by commentsX
Displaying 1-10 of 11 result(s).

How to log changes of ActiveRecords?

Created 5 years ago by pfthTutorials7 comments – viewed 33,583 times – ( +37 / -2 ) – version 1.1
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

How to log and debug variables using CWebLogRoute

Created 3 years ago by Antonio RamirezHow-tos7 comments – viewed 48,775 times – ( +18 ) – version 1.1
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

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 10,152 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

How to re enable logging during unit testing

Created 2 years ago by AsgarothHow-tos3 comments – viewed 11,550 times – ( +11 ) – version 1.1
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.

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 4 years ago by mindplayTutorials3 comments – viewed 19,298 times – ( +7 ) – version 1.1
During development, it's often very handy to have SQL logging and profiling.
tags: Logging

Real Time Logging

Created 3 years ago by lucifuriousTips3 comments – viewed 19,321 times – ( +14 ) – version 1.1
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.

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 5,286 times – ( +4 ) – version 1.1
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 log context information to logger (session id, user, ...)

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

ChromePHP for Yii

Created 3 years ago by imeheszTips0 comments – viewed 9,813 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

How to prevent Login from two places?

Created 4 months ago by Rohit SutharTutorials0 comments – viewed 3,088 times – ( +4 / -1 ) – version 1.1
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.