autoease.utils.log module

@IDE: PyCharm @Project: automation @Author: Alice Wu @Email: wutong01@corp.netease.com @File: Log.py @Time: 2021/6/2 16:33 @Description:

class autoease.utils.log.StoppableThread[source]

Bases: Thread

stop()[source]
on_stop()[source]
class autoease.utils.log.LogTracker(id_name, log_path, wait_for_path=True, wait_for_timeout=1800)[source]

Bases: StoppableThread

LISTENER = {}
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

seek(pos)[source]
custom_line(line)[source]
notify(line)[source]
register_listener(callback, **kwargs)[source]
uninstall(listener)[source]
class autoease.utils.log.LogListener(tracker, callback, **kwargs)[source]

Bases: object

on_trigger(line)[source]
uninstall()[source]
autoease.utils.log.wait_for_keyword(filename, keyword, timeout=20, is_rematch=False, opfunc=None)[source]