Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1295

CDS UI - Enhance logging

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • El Alto Release
    • Dublin Release
    • None
    • None

      i. Add logging infrastructure. 

      a. Select a well known Node module to use as logger.

      See: https://github.com/i0natan/nodebestpractices/blob/master/sections/errorhandling/usematurelogger.md for Node libraries to use as loggers

      b. Define a set of log patterns to use (e.g. log line should have timestamp, transaction-id, log level, class name, etc..)

      c. Define a set of rules for rolling-over log files (i.e. what is the max size of log file? should we keep a max number of log files on disk? should we archive older log files? should we rollover based on timestamp?)

       

      ii. Log request-response between Loopback server and  controller/processor mS

      a. Capture HTTP request URI, headers (exclude Auth headers)

      b. Capture corresponding HTTP response status code, headers

       

      iii. Log request-response into Loopback server

      a. Capture HTTP request URI, headers (exclude Auth headers)

      b. Capture corresponding HTTP response status code, headers

       

            ramy1313 ramy1313
            nirvan.ramjuttun nirvan.ramjuttun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: