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

Move logger configuration from extension to explicit logger config section

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • None
    • 5.5.0
    • memcached
    • None

    Description

      Loading the file logger as an extension at runtime adds some unnecessary complexity to our code. One way to remove this abstraction would be to have ns_server add the logger configuration as a separate json object inside memcached.json. The object would look like:

       
      "logger": {"filename": "logs/n_1/memcached.log", 
                     "cyclesize": 10485760,
                     "sleeptime": 19}
      

      The settings inside "logger" can then be used inside memcached_main to configure the file logger at compile time.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-26938
          # Subject Branch Project Status CR V

          Activity

            People

              eugen.virtan Eugen Virtan (Inactive)
              eugen.virtan Eugen Virtan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty