kappnav / issues

kAppNav global issues
0 stars 0 forks source link

UI server logging #165

Closed cvignola closed 4 years ago

cvignola commented 4 years ago

Add log statements, as per https://github.com/kappnav/design/blob/master/logging.md

k8vance88 commented 4 years ago

The full scenario requires 2 work items (2 will be worked under #167 ):

  1. UI server to host a REST api to set the log level
  2. API server to watch for level changes and call the UI server REST api like this: POST http://localhost:3000/extensions/logLevel with application/json payload { "level" : "debug" }

with the following level substitutions:

Operator level => UI REST api level to send

   none                             off  
   error                            error
   warning                          warn
   info                             info
   debug                            debug
   entry                            trace
   all                              all

For example, if the api server detects that the ui should be at log level entry, then it should call the UI server REST api with level 'trace'.