Implement LogMonitoringEventHandler to manage a LogMonitor via API

This commit is contained in:
Kristóf Tóth 2018-05-30 13:14:25 +02:00
parent 9e6cd57532
commit 3bb97a6dcc
2 changed files with 16 additions and 1 deletions

View File

@ -7,4 +7,4 @@ from .terminal_event_handler import TerminalEventHandler
from .ide_event_handler import IdeEventHandler
from .history_monitor import HistoryMonitor, BashMonitor, GDBMonitor
from .terminal_commands import TerminalCommands
from .log_monitor import LogMonitor
from .log_monitoring_event_handler import LogMonitoringEventHandler

View 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