Yii Framework Forum: Logging di console app yang running lama - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Logging di console app yang running lama Rate Topic: -----

#1 User is offline   petra 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 218
  • Joined: 20-June 10

Posted 12 July 2010 - 08:10 PM

Mau nanya,
Saya punya ConsoleCommand yang running di infinite loop. Nah di setiap loop, saya pengen ngelog. Tapi di Yii log itu dijalanin kalo udah si ConsoleCommand udah kelar di running.
Ada yang tau gak caranya?

class EmailCommand extends CConsoleCommand {
    
    public function run($args) {
        for(;;) {
                Yii::log('Something');
        }
    }
}

0

Share this topic:


Page 1 of 1
  • 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