def enable_logging(self):
     if not os.path.exists(".cloudfusion/logs"):
         os.makedirs(".cloudfusion/logs")
     logging.config.fileConfig(
         os.path.dirname(cloudfusion.__file__) + '/config/logging.conf')
     db_logging_thread.start()  #.handlers = []
     logging.disable(logging.NOTSET)
def test():
    if not os.path.exists(".cloudfusion/logs"):
        os.makedirs(".cloudfusion/logs")
    logging.config.fileConfig(os.path.dirname(cloudfusion.__file__)+'/config/logging.conf')
    db_logging_thread.start()
    time.sleep(2)
    threads = []
    processes = []
    for i in range(0,10):
        t = TestingThread()
        threads.append(t)
    for i in range(0,10):
        p = TestingProcess()
        processes.append(p)
    for p in processes:
        p.start()
    for t in threads:
        t.start()
    for t in threads:
        t.join()
    for p in processes:
        p.join()
def test():
    if not os.path.exists(".cloudfusion/logs"):
        os.makedirs(".cloudfusion/logs")
    logging.config.fileConfig(
        os.path.dirname(cloudfusion.__file__) + '/config/logging.conf')
    db_logging_thread.start()
    time.sleep(2)
    threads = []
    processes = []
    for i in range(0, 10):
        t = TestingThread()
        threads.append(t)
    for i in range(0, 10):
        p = TestingProcess()
        processes.append(p)
    for p in processes:
        p.start()
    for t in threads:
        t.start()
    for t in threads:
        t.join()
    for p in processes:
        p.join()
 def enable_logging(self):
     if not os.path.exists(".cloudfusion/logs"):
         os.makedirs(".cloudfusion/logs")
     logging.config.fileConfig(os.path.dirname(cloudfusion.__file__)+'/config/logging.conf')
     db_logging_thread.start()    #.handlers = []
     logging.disable(logging.NOTSET)