enableLog() публичный статический Метод

enableLog 啟用某個 LOG
public static enableLog ( mixed $group ) : void
$group mixed
Результат void
Пример #1
0
 /**
  * Log Group 狀態
  */
 public function testEnableLog()
 {
     Pix_Table::enableLog(Pix_Table::LOG_CACHE);
     $this->assertEquals(Pix_Table::getLogStatus(Pix_Table::LOG_CACHE), true);
     Pix_Table::disableLog(Pix_Table::LOG_CACHE);
     $this->assertEquals(Pix_Table::getLogStatus(Pix_Table::LOG_CACHE), null);
 }
Пример #2
0
<?php

include __DIR__ . '/init.inc.php';
if ($_SERVER['argv'][1] == '-d') {
    Pix_Table::enableLog(Pix_Table::LOG_QUERY);
}
Pix_Prompt::init();