gh #14: Log monitor for the callback functions#15
Conversation
Added file monitor class
| from interactiveShell import InteractiveShell | ||
|
|
||
| class utFileMonitor: | ||
| """This Class monitors the log files. If there are any new lines added to the file, then reports back |
There was a problem hiding this comment.
highlight that the class will monitor a file on the device connected to the session.
| @@ -0,0 +1,119 @@ | |||
| import sys | |||
There was a problem hiding this comment.
-
Goal: For the class
-
Monitor for events coming into a file on the target.
-
Wait for an event to arrive, then inform the caller.
-
Set up an option start event marker, and end event marker.
-
if the full message is received within the timeout, then the callback is triggered
-
if the message timeout, then the callback is not triggered.
-
Each instance of the class will create a monitoring thread
- In the case where multiple sessions are required, the session class must support multiple instance.
| @@ -0,0 +1,119 @@ | |||
| import sys | |||
There was a problem hiding this comment.
add a module description on what it's for.
There was a problem hiding this comment.
https://github.com/rdkcentral/ut-raft/wiki/utFileMonitor-Manual -> to review and edit as required.
|
can you remove |
|
@bhanucbp - this is still pending? |
|
Closing this as not required. |
Added file monitor class