public CAsyncHttp(bool bInternal = false) { m_bInternal = bInternal; if (!m_bInternal) { base.setLogCategory(LOG.getLogCategory()); } else { LOG = new RhoEmptyLogger(); base.setLogCategory(null); } setPollInterval(QUEUE_POLL_INTERVAL_INFINITE); }
public static void clean_log(RubyModule /*!*/ self) { try { RhoLogger.clearLog(); } catch (Exception ex) { Exception rubyEx = self.Context.CurrentException; if (rubyEx == null) { rubyEx = RubyExceptionData.InitializeException(new RuntimeError(ex.Message.ToString()), ex.Message); } LOG.ERROR("clean_log", ex); throw rubyEx; } }
public static void set_property_by_name(RubyModule /*!*/ self, [NotNull] String /*!*/ name, Object value) { try { RhoConf.getInstance().setString(name, value as String, true); RhoLogger.getLogConf().loadFromConf(RhoConf.getInstance()); } catch (Exception ex) { Exception rubyEx = self.Context.CurrentException; if (rubyEx == null) { rubyEx = RubyExceptionData.InitializeException(new RuntimeError(ex.Message.ToString()), ex.Message); } LOG.ERROR("set_property_by_name", ex); throw rubyEx; } }
public void setLog(RhoLogger log) { LOG = log; }
public void setLog(RhoLogger log) { LOG = log; m_pNetRequest.setLog(LOG); }