Uploaded image for project: 'SET - Setups'
  1. SET - Setups
  2. SET-133

It should be possible to enable the request log

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.12
    • 1.12.3
    • None

    Description

      Current Situation

      The JOC Webservice does not log the requests.

      Desired Behavior

      It should be possible to enable the requests log for the JOC Webservice.
      This will be done by calling the script

      ./install/install_jetty_base requestlog

      which executes

        java -jar "%JOC_JETTY_HOME%\start.jar" -Djetty.home="%JOC_JETTY_HOME%" -Djetty.base="%JOC_JETTY_BASE%" --add-to-start=requestlog
      

      This call will modify the file $joc_home/jetty_base/start.ini with

      --module=requestlog
      
      ## Logging directory (relative to $jetty.base)
      # jetty.requestlog.dir=logs
      
      ## File path
      # jetty.requestlog.filePath=${jetty.requestlog.dir}/yyyy_mm_dd.request.log
      
      ## Date format for rollovered files (uses SimpleDateFormat syntax)
      # jetty.requestlog.filenameDateFormat=yyyy_MM_dd
      
      ## How many days to retain old log files
      # jetty.requestlog.retainDays=90
      
      ## Whether to append to existing file
      # jetty.requestlog.append=true
      
      ## Whether to use the extended log output
      #jetty.requestlog.extended=true
      
      ## Whether to log http cookie information
      # jetty.requestlog.cookies=true
      
      ## Timezone of the log entries
      # jetty.requestlog.timezone=GMT
      
      ## Whether to log LogLatency
      # jetty.requestlog.loglatency=false
      
      

      To deactivate the request log the file $jetty_home/start.ini must be changed manually.

      Workaround

      To enable the request log you can call the attached script (rename to cmd)

      Attachments

        Activity

          People

            oh Oliver Haufe
            ur Uwe Risse
            Uwe Risse Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: