I need help to evaluate what the correct twisted-matrix application design will be. Or any url to help do this.
- background: I now use the logging capabilities included in twistedmatrix with
FileLogObserver and a custom DailyLogFile to move and save data to the file system and for further analysis.
Now I am going to use many different applications that will perform their tasks and send log messages in the form of time events in many files, twisted logs (files with different files). So my events are composed of (timestamp, data)
I need to somehow read each of these registered messages (timestamp, data) in real time and centralize the grouping of events by time, that is, have some calculations and group by all events that have exactly the same time stamp.
Am I entitled to assume that I can do this using twisted log functions?
how would you lay it in a simple way?
my current thought was to create a twisted socket logger and duplicate the registration process, so that each event is sent to the file logger (I need a separate history), but also through the socket for the recipient (now I also need in real time), if I am correct digging this way, does anyone have a skeleton for such a twisted socket logger? How can I knit two registrars from twisted ones?
for the other part, what should be the correct registration receiver?
since I will also distribute calculated / aggregated data through the lighstreamer server using the diagram below, there may be some difficulties that I might not have seen, which would require some streaming mecanism or other mecanism to avoid a blocking network call?
feed = socket.socket(socket.AF_INET, socket.SOCK_STREAM) feed.connect(("localhost",MYPORT)) feed.send(mytimestamp, myeventdata)
as a figure, it can be schematized as: s (almost all in real time)
producerTimedEventLog1 --->| producerTimedEventLog2 --->| ... |---> loggerReceiverComputingData ---> lighstreamer process ---> mozilla or whatever webclient ... | producerTimedEventLognN--->|
each producerTimedEventLognN is also written to the file.
I'm interested in all the useful ideas :)
Best wishes