Download OpenAPI specification:
This API enables you to view and modify the log levels of individual Operational Insights loggers at runtime, without restarting the service.
Changes made through this API are applied immediately, broadcast to all active nodes in the cluster, and
persisted so that they survive node restarts. They override the default log level configured by the
logLevel service-level parameter (see the Configuration REST API) for the affected loggers.
The root logger cannot be modified through this API.
Returns the loggers that have been explicitly configured (i.e., whose level differs from that of their parent logger), along with their current levels.
{- "loggers": [
- {
- "name": "com.couchbase.analytics",
- "level": "DEBUG"
}
]
}Sets the log level for one or more loggers. Any logger included in the request that does not yet exist is created. The root logger (empty name) cannot be modified.
required | Array of objects The list of loggers and their levels. |
{- "loggers": [
- {
- "name": "com.couchbase.analytics",
- "level": "DEBUG"
}
]
}{- "error": "string"
}Returns the current effective log level of the specified logger, as plain text.
| logger required | string Example: com.couchbase.analytics The name of the logger. |
{- "error": "string"
}Sets the log level for the specified logger, creating it if it does not yet exist. The root logger cannot be modified.
| logger required | string Example: com.couchbase.analytics The name of the logger. |
A log level. Common values, from least to most verbose, are:
OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL.
{- "error": "string"
}Removes the level previously set for the specified logger through this API, so that it reverts to inheriting its level from its parent logger. The root logger cannot be modified.
| logger required | string Example: com.couchbase.analytics The name of the logger. |
{- "error": "string"
}