Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49898

js-evaluator should support users' log()/console.log() statements in javascript functions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.0.2, 7.1.0
    • js-evaluator
    • None
    • 1

    Description

      Currently, users' cannot use log()/console.log() statements in javascript functions run by the js-evaluator.  Users should be able to do custom user/application logging from js-evaluator javascript functions and have the messages be put in user-controlled application logs, similar to how the Eventing Service handles the application logs from the Eventing functions (doc).  The user/customer should be able to configure the maximum number of log files (for rotation), and the maximum size of each log per js-evaluator library, preferably via js-evaluator REST API's.  The same defaults as the Eventing Service application logs can be used (40MB for the application log file, and 10, for the number of application log files before rotation).

      Note:   Originally, this issue was part of MB-36628, but Jeelan Poola agreed that it would be best to open a separate issue since MB-36628 is also being used for the js-evaluator system logging issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            abhishek.jindal Abhishek Jindal
            hyun-ju.vega Hyun-Ju Vega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty