waidyanatha / strix-mom

Strix receiver-server
0 stars 0 forks source link

log file for strix-dll #26

Open waidyanatha opened 10 years ago

waidyanatha commented 10 years ago

You need to create a log file that will capture all the procedures at each step and action and the errors including file send times, file sizes, etc. It is an important coding practice.

Make sure to log an entry before starting a process and after starting a process. For example, UDPFileSend indicates that file was sent but in reality it was not such as with only .meta files are sent and not others.

tharinduj commented 10 years ago

Cannot create logs for udpfile send and stream send. There are small simulators. Filesend will say file is send even if there is no momserver listening. That is how udp works and it is not a bug. Which doesn't have much to log. Instead there is a log for momserver.

waidyanatha commented 10 years ago

Ok, you are correct we don't need a log file for the UDPSend component, just for the Strix-DLL receive part.

We do need to capture in log file for Strix-DLL: UDP Listener and Websocket Server

A some example of a log entry [2014-09-01T10:15:30][Comm-Port:UDP8005][File {name:"abcd grade 5.meta"},{size:"780500Bytes"}][strix_data_link_move_file][Param {name:Source, value:"UDPListener-Buffer"}, {name:Destination, value:"C:/Jagger/apps/strix/resourcecs/common/"}][Fail][Error:"Folder C:/Jagger/apps/strix/resourcecs/common/" does not exist or is write protected, strix_datalink_move_file aborted"]

[2014-09-01T12:15:00][Comm-Port:UDP8006][Stream {name:""},{size:"780500Bytes"}][strix_data_link_stream][Param {name:Source, value:"UDPListener-Buffer"}, {name:Destination, value:"WS://LOCALHOST:8790"}, {name:"start-date-time, value:2014-09-01T11:35:00}, {name:"start-date-time, value:2014-09-01T12:15:00}][Success][Error:""]

Note - the examples may not be properly formatted but they should provide adequate insights for the requirement.

Besides monitoring the operations performed by Strix-DLL we will also use these log files to run some analysis on the utilization. We may also use them to calculate the amount of data transmitted for billing. If we have a JSON like structure, then it is easy to parse the file to identify specific elements for specific calculations and monitoring. For example, from the _stream_start data-time and stream_end date-time we know how long the data was streamed.

On Mon, Sep 1, 2014 at 11:04 AM, Tharindu notifications@github.com wrote:

Closed #26 https://github.com/waidyanatha/strix-mom/issues/26.

— Reply to this email directly or view it on GitHub https://github.com/waidyanatha/strix-mom/issues/26#event-159465210.

waidyanatha commented 10 years ago

Log files are no longer being created?

waidyanatha commented 9 years ago

Are log files not being created? I noticed when I started Momserver.bat today 13-Nov-2014 there was no log file created and also the previous ones are empty. We need this working again.