- Home
- Resources
- Logger API
PUT /api/log/allLevel
Set all logging levels
Request Parameters
name |
type |
description |
constraints |
level |
query |
Log level, TRACE, DEBUG, WARN, INFO |
int |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
PUT /api/log/allLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
PUT /api/log/appenderLevel
Set appenders level for given class and appender
Sample call: /api/log/setAppenderLevel?className=com.tessel.hdc.hdas.common.DataSourceSingletonFactory&appenderName=debugFile&level=INFO
Request Parameters
name |
type |
description |
constraints |
appenderName |
query |
appenderName e.g. debugFile |
|
className |
query |
Class name eg. className=com.tessel.hdc.hdas.common.DataSourceSingletonFactory |
|
level |
query |
Log level to be set: TRACE, DEBUG, WARN, INFO (see levelsType) |
int |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
PUT /api/log/appenderLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
GET /api/log/appendersLevel
Get appenders level for specific class
Request Parameters
name |
type |
description |
className |
query |
Class Name eg. className=com.tessel.hdc.hdas.common.DataSourceSingletonFactory |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/log/appendersLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
GET /api/log/effectiveLevel
Get effective logging level for all classes defined
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/log/effectiveLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
GET /api/log/level
Get logging level
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/log/level
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
PUT /api/log/level
Set logging level
Request Parameters
name |
type |
description |
constraints |
className |
query |
class name, eg. name=com.tessel.hdc.hdas.common.DataSourceSingletonFactory |
|
level |
query |
Log level, TRACE, DEBUG, WARN, INFO, e.g. ?level=TRACE |
int |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
PUT /api/log/level
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...
GET /api/log/levelsType
Get possible log level types
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/log/levelsType
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
GET /api/log/rootLevel
Get Root logging Level
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
GET /api/log/rootLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 200 OK
Content-Type: application/json
...
PUT /api/log/rootLevel
Set Root logging Level
Request Parameters
name |
type |
description |
constraints |
level |
query |
Provide log level: TRACE, DEBUG, WARN, INFO e.g. ?level=TRACE |
int |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
|
Example
Request
PUT /api/log/rootLevel
Content-Type: */*
Accept: application/json
...
Response
HTTP/1.1 204 No Content
Content-Type: application/json
...