public static function set_debug($toggle, $output = "stdout") {
    if ($toggle) {
      self::$debug = $output;
    }
    else {
      self::$debug = false;
    }
  }
public static function set_debug($toggle, $output = "stdout") {
    if ($toggle) {
      self::$debug = $output;
    }
    else {
      self::$debug = false;
    }
  }
public static function set_debug ( $ toggle , $ output = "stdout" ) { if ( $ toggle ) { self :: $ debug = $ output ; } else { self :: $ debug = false ; } }
Set debug config

@param $toggle True to enable debugging. False to disable
@param $output Output mode. Can be "stdout" or "file". Default is "stdout"
Set debug config