Skip to content

GoAuth2 ui logging

Ken Williamson edited this page Mar 15, 2020 · 1 revision

Set Log Level to INFO

GoAuth2-ui has a REST service for setting logging to different levels.

Method: POST

URL: http://localhost:8091/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:8091/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:8091/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:8091/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"
}