ReFlex Logo
ReFlex (Title)
Documentation
Navigation

ReFlex.Logging

Small node logging server using express and winston to log sensor data and result sets. Data sets can be stored as well.

Table of Contents

  1. Start Logging Server
  2. REST API
  3. Logging
  4. Query Logs
  5. Saving data sets

Start Logging Server

⬆ back to top

REST API

endpoint Method Description Example Request Body Example Response Body
/log/create POST create log file / start logging { "message": "FrameId, IsValid, Comment;" } { "file": "2023-07-27T205105.042Z" }
/log/data POST log message to file { "message": "2, false, +++;" }  
/log/data/2023-07-27T205105.042Z GET retireve data logs FrameId, IsValid, Comment;
2, false, +++;
 
/log/result POST log result to file { "ProbandId": 3, "test": true, "result": "result" }  
/log/result GET retrieve results   { "ProbandId": 3, "test": true, "result": "result" }
/data/11 POST create data file data_011.json {
"data0": "test"
"data1": "abc"
"data3": "123"
}
{ "file": "data/data_011.json" }
/data/11 GET retrieve data file data_011.json   {
"data0": "test"
"data1": "abc"
"data3": "123"
}
/data GET list of available data sets   [ 11 ]

⬆ back to top

Logging

⬆ back to top

Query Logs

⬆ back to top

Saving data sets

When generating data, these can be stored and retrieved in the data directory:

⬆ back to top