This API helps retrieve the current logging level set for vCenter Chargeback Manager. The following are the supported log levels.
Log Level |
Description |
---|---|
trace |
The trace level is the most informative level providing fine‐grained information about the |
debug |
The debug level provides event information that are most useful to debug an application. |
info |
The info level provides coarse‐grained informational messages that highlight the |
warn |
The warn level provides information about potentially harmful situations. |
error |
The error level designates error events that might still allow the application to continue |
fatal |
The fatal level designates very severe error events that will presumably lead the application to |
The syntax for calling this API is:
GET <Base_URL>/logLevel
A sample API call is as follows:
GET https://123.123.123.123/vCenter-CB/api/logLevel
None. Any user authenticated with vCenter Chargeback Manager can use this API.
This API call does not take any input parameters.
The API returns an XML with details of the current log level. The response XML provides the following information.
XPath |
Type |
Min Occurs |
Max Occurs |
Description |
---|---|---|---|---|
LogLevels/LogLevel |
|
1 |
1 |
Represents the log level element. |
LogLevels/LogLevel/@id |
xs:int |
1 |
1 |
ID of the supported log level. |
LogLevels/LogLevel/Name |
xs:string |
1 |
1 |
Name of the supported log level. For example, info. |
A sample response is provided here.