All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robotframework-2.7.7.atest.testdata.test_libraries.ThreadLoggingLib.py Maven / Gradle / Ivy

The newest version!
import threading
import logging
import time

from robot.api import logger



def log_using_robot_api_in_thread():
    threading.Timer(0.1, log_using_robot_api).start()

def log_using_robot_api():
    for i in range(100):
        logger.info(str(i))
        time.sleep(0.01)

def log_using_logging_module_in_thread():
    threading.Timer(0.1, log_using_logging_module).start()

def log_using_logging_module():
    for i in range(100):
        logging.info(str(i))
        time.sleep(0.01)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy