Get Log

<< Click to Display Table of Contents >>

Navigation:  Optimizer API >

Get Log

 

Fetch the nominated log file from the BlackBox.

 

HTTP request:

 

 GET opt/v1/log/{date}?IWEF 

 

Authentication: BASIC

 

Parameters:

Date, in the ISO format of YYYYMMDD

 

Filter, any combination of I,W,E,F. These filters allow you to select the severity levels of the messages you wish to retrieve:

 

I - Informational. Lowest severity level, used to report on basic operations that the BlackBox might undergo (startup, garbage collection etc)

W - Warning. Second level of severity, used to indicate notable system operations (shutdown, re-load of data) or non-serious data errors in the payload, for example zero quantities for products

E - Error. Third level of severity, used to indicate serious errors in the system which are likely to affect results of the current loading operation (bad or missing data, parsing errors etc)

F - Fatal. Fourth and final level of severity, used to indicate errors that threaten the integrity of the system. There are only two such errors in the system, to warn of serious hardware issue or to warn that the software is unlicensed and must not be used any more.

 

Response:

 

{

 "blackox": {

   "log": [

     "2020-04-23 17:05:10:599-I-BlackBox5 starting up",

    ... etc ...

     "EOF"

   ]

 }

}