Example #1
0
 public static function PowerOn()
 {
     self::$_on = true;
     $bt = debug_backtrace();
     $caller = array_shift($bt);
     self::$_start = strpos($caller['file'], '/plugins/rating-widget/') + strlen('/plugins/rating-widget');
     self::$_logger = rw_fs()->get_logger();
     self::$_logger->on();
     if (WP_RW__LOG_DUMP) {
         self::$_logger->echo_on();
     }
 }