Пример #1
0
        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);
        }
Пример #2
0
 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;
     }
 }
Пример #3
0
        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;
            }
        }
Пример #4
0
 public void setLog(RhoLogger log)
 {
     LOG = log;
 }
Пример #5
0
 public void setLog(RhoLogger log)
 {
     LOG = log; m_pNetRequest.setLog(LOG);
 }