Beispiel #1
0
 /**
  * Initializes the log route.  This method is invoked after the log route is created by the route manager.
  *
  * @return null
  */
 public function init()
 {
     $this->setLogPath(craft()->path->getLogPath());
     $this->levels = craft()->config->get('devMode') ? '' : 'error,warning';
     $this->filter = craft()->config->get('devMode') ? 'Craft\\LogFilter' : null;
     parent::init();
 }
 public function init()
 {
     $path = Yii::app()->getRuntimePath() . DS . "wap";
     if (!file_exists($path)) {
         @mkdir($path, 0777, true);
     }
     if ($this->getLogPath() === null) {
         $this->setLogPath($path);
     }
     parent::init();
 }
 /**
  * Initialize component
  */
 public function init()
 {
     parent::init();
     //  Write each line out to disk
     Yii::getLogger()->autoFlush = 1;
 }
Beispiel #4
0
 /**
  * Initializes the route.
  * This method is invoked after the route is created by the route manager.
  */
 public function init()
 {
     parent::init();
     $this->levels = CLogger::LEVEL_PROFILE;
 }
Beispiel #5
0
 public function init()
 {
     parent::init();
 }