Update System Log Level

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Change Pipelines services log level in runtime. This overrides the value set for Logging Configuration in the Pipelines System YAML.Supported Configurations in Pipelines System YAML

Security:Requires admin credentials

Usage: PUT api/v1/systemConfigs/loggers

Produces: application/json

Request Parameters:

Parameter

Type

Description

Required/Optional

service

String

The service for which you want to change the log level. Valid values are:

  • api

  • www

  • pipelineSync

  • runTrigger

  • stepTrigger

  • cron

  • nexec

  • hookHandler

  • marshaller

  • logup

  • extensionSync

  • templateSync

  • reqSealer

  • eventHandler

Required

level

String

The logging level you want for the service. Valid values are:

  • error

  • warn

  • info

  • debug

  • trace

Required

Sample Request:

PUT /pipelines/api/v1/systemConfigs/loggers

{
  "configValue": {
  "service": "api",
  "level": "info"
        }
}

Sample Response:

{
"configName": "loggers"
"configValue": {
   "api": {
     "configuredLevel": "info",
     "defaultLevel": "trace"
   }
 }
}