Skip to content

Log Levels

Ken Williamson edited this page Feb 8, 2020 · 2 revisions

Set Log Level to INFO

Method: POST

URL: http://localhost:3000/rs/loglevel

Request headers Example:

Content-Type = application/json
Logging_KEY = 45sdbb2345 //Default and can be changed with env variable

Request Body Example:

{
	"loglevel": "info"
}

Response:

{
    "success": true,
    "logLevel": "INFO"
}

Set Log Level to DEBUG

Method: POST

URL: http://localhost:3000/rs/loglevel

Request headers Example:

Content-Type = application/json
Logging_KEY = 45sdbb2345 //Default and can be changed with env variable

Request Body Example:

{
	"loglevel": "debug"
}

Response:

{
    "success": true,
    "logLevel": "DEBUG"
}

Set Log Level to ALL

Method: POST

URL: http://localhost:3000/rs/loglevel

Request headers Example:

Content-Type = application/json
Logging_KEY = 45sdbb2345 //Default and can be changed with env variable

Request Body Example:

{
	"loglevel": "all"
}

Response:

{
    "success": true,
    "logLevel": "ALL"
}

Set Log Level to OFF

Method: POST

URL: http://localhost:3000/rs/loglevel

Request headers Example:

Content-Type = application/json
Logging_KEY = 45sdbb2345 //Default and can be changed with env variable

Request Body Example:

{
	"loglevel": "off"
}

Response:

{
    "success": true,
    "logLevel": "OFF"
}