mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:01:32 +00:00
Implement LogMonitoringEventHandler to manage a LogMonitor via API
This commit is contained in:
parent
9e6cd57532
commit
3bb97a6dcc
@ -7,4 +7,4 @@ from .terminal_event_handler import TerminalEventHandler
|
|||||||
from .ide_event_handler import IdeEventHandler
|
from .ide_event_handler import IdeEventHandler
|
||||||
from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor
|
from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor
|
||||||
from .terminal_commands import TerminalCommands
|
from .terminal_commands import TerminalCommands
|
||||||
from .log_monitor import LogMonitor
|
from .log_monitoring_event_handler import LogMonitoringEventHandler
|
||||||
|
15
lib/tfw/components/log_monitoring_event_handler.py
Normal file
15
lib/tfw/components/log_monitoring_event_handler.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||||||
|
# All Rights Reserved. See LICENSE file for details.
|
||||||
|
|
||||||
|
|
||||||
|
from tfw import EventHandlerBase
|
||||||
|
from tfw.mixins import MonitorManagerMixin
|
||||||
|
from .log_monitor import LogMonitor
|
||||||
|
|
||||||
|
|
||||||
|
class LogMonitoringEventHandler(EventHandlerBase, MonitorManagerMixin):
|
||||||
|
def __init__(self, process_name, log_tail=0):
|
||||||
|
MonitorManagerMixin.__init__(self, LogMonitor, process_name, log_tail)
|
||||||
|
|
||||||
|
def handle_event(self, message):
|
||||||
|
pass
|
Loading…
Reference in New Issue
Block a user