Yii Framework Forum: Logging in Long running Console app - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Logging in Long running Console app Rate Topic: -----

#21 User is offline   Rodrigo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 29-May 10

Posted 18 February 2012 - 09:27 AM

I know that is an old post, but just to keep it updated

Worked for me:
http://www.yiiframew...al-time-logging
0

#22 User is offline   zula 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 05-April 12
  • Location:Budapest, Hungary

Posted 11 July 2012 - 02:20 AM

I know too, this is an old post, and the time it's written, the following couldn't worked, but to keep it updated for anyone (like me), who are searching for solution here, from 1.1.8, there is CLogger::autoDump, what you can set to true after including yii. With this and CLogger::autoFlush = 1, logging becomes real time.

Yii::getLogger()->autoDump=true;
Yii::getLogger()->autoFlush=1;

0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users