org.cybergarage.util.Debug.on()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(191)

本文整理了Java中org.cybergarage.util.Debug.on()方法的一些代码示例,展示了Debug.on()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Debug.on()方法的具体详情如下:
包路径:org.cybergarage.util.Debug
类名称:Debug
方法名:on

Debug.on介绍

暂无

代码示例

代码示例来源:origin: apache/felix

public void setCyberDebug(String value){
  try {
    if (Boolean.valueOf(value).booleanValue()){
      Debug.on();
      out.println("INFO [UPnPBaseDriver] Started CyberLink Debug");
    }
  } catch (Exception ex){
    out.println("WARNING [UPnPBaseDriver CyberLog]: " + value +" is not a valid value!");
  }
}

代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver

public void setCyberDebug(String value){
  try {
    if (Boolean.valueOf(value).booleanValue()){
      Debug.on();
      out.println("INFO [UPnPBaseDriver] Started CyberLink Debug");
    }
  } catch (Exception ex){
    out.println("WARNING [UPnPBaseDriver CyberLog]: " + value +" is not a valid value!");
  }
}

代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver

public void setCyberDebug(boolean value){
  if (value) Debug.on();
  else Debug.off();
}

代码示例来源:origin: apache/felix

public void setCyberDebug(boolean value){
  if (value) Debug.on();
  else Debug.off();
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public static void main(String args[]) 
  {
    //Debug.on();
    for (int n=0; n<args.length; n++) {
      String opt = args[n];
      if (opt.equals("-v") || opt.equals("--verbose")) {
        Debug.on();
        Debug.message("Debug.on");
			}
    }
    
    CtrlPoint ctrlPoint = new CtrlPoint();
    ctrlPoint.start();
  }

}

代码示例来源:origin: cybergarage/cybergarage-upnp

public static void main(String args[]) 
  {
    //Debug.on();
    for (int n=0; n<args.length; n++) {
      String opt = args[n];
      if (opt.equals("-v") || opt.equals("--verbose")) {
        Debug.on();
        Debug.message("Debug.on");
			}
    }
    
    UpnpIGDTool igdtool = new UpnpIGDTool();
    igdtool.start();
  }

}

代码示例来源:origin: cybergarage/cybergarage-upnp

public static void main(String args[]) 
{
  Debug.on();
  MythDirectory mythdir = new MythDirectory();
  mythdir.update();
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public static void main(String args[])
{
  Debug.off();
  boolean need_gui = true;
  int mode = FILESYS_MODE;
  Debug.message("args = " + args.length);
  for (int n=0; n<args.length; n++) {
    Debug.message("  [" + n + "] = " + args[n]);
    if (MYTHTV_OPT_STRING.compareTo(args[n]) == 0)
      mode = MYTHTV_MODE;
    if (MYTHTV_OPT_STRING_OLD.compareTo(args[n]) == 0)
      mode = MYTHTV_MODE;
    if (VERBOSE_OPT_STRING.compareTo(args[n]) == 0)
      Debug.on();
    if (CONSOLE_OPT_STRING.compareTo(args[n]) == 0)
      need_gui = false;
  }
  MediaGate mediaGate = new MediaGate(mode, need_gui);
  debug(mediaGate);
  mediaGate.start();
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public UpnpIGDTool()
{
  addNotifyListener(this);
  addSearchResponseListener(this);
  addEventListener(this);
  Debug.on();
  
  initFrame();
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public CtrlPoint()
{
  addNotifyListener(this);
  addSearchResponseListener(this);
  addEventListener(this);
  Debug.on();
  
  initFrame();
}

相关文章