robotframework-2.7.7.atest.testdata.test_libraries.ThreadLoggingLib.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robotframework Show documentation
Show all versions of robotframework Show documentation
High level test automation framework
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)