|
|
@ -1,15 +1,15 @@
|
|
|
|
[[loggers]]
|
|
|
|
[[loggers]]
|
|
|
|
= Loggers (`loggers`)
|
|
|
|
= Loggers (`loggers`)
|
|
|
|
|
|
|
|
|
|
|
|
The `loggers` endpoint provides access to the application's loggers and configuration of
|
|
|
|
The `loggers` endpoint provides access to the application's loggers and the configuration
|
|
|
|
their levels.
|
|
|
|
of their levels.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[loggers-all]]
|
|
|
|
[[loggers-all]]
|
|
|
|
== Retrieving all Loggers
|
|
|
|
== Retrieving All Loggers
|
|
|
|
|
|
|
|
|
|
|
|
To retrieve the application's loggers, make a `GET` request to `/application/loggers` as
|
|
|
|
To retrieve the application's loggers, make a `GET` request to `/application/loggers`, as
|
|
|
|
shown in the following curl-based example:
|
|
|
|
shown in the following curl-based example:
|
|
|
|
|
|
|
|
|
|
|
|
include::{snippets}loggers/all/curl-request.adoc[]
|
|
|
|
include::{snippets}loggers/all/curl-request.adoc[]
|
|
|
@ -23,8 +23,8 @@ include::{snippets}loggers/all/http-response.adoc[]
|
|
|
|
[[loggers-all-response-structure]]
|
|
|
|
[[loggers-all-response-structure]]
|
|
|
|
=== Response Structure
|
|
|
|
=== Response Structure
|
|
|
|
|
|
|
|
|
|
|
|
The response contains details of the application's loggers. The structure of the response
|
|
|
|
The response contains details of the application's loggers. The following table describes
|
|
|
|
is described in the following table:
|
|
|
|
the structure of the response:
|
|
|
|
|
|
|
|
|
|
|
|
[cols="3,1,3"]
|
|
|
|
[cols="3,1,3"]
|
|
|
|
include::{snippets}loggers/all/response-fields.adoc[]
|
|
|
|
include::{snippets}loggers/all/response-fields.adoc[]
|
|
|
@ -34,7 +34,7 @@ include::{snippets}loggers/all/response-fields.adoc[]
|
|
|
|
[[loggers-single]]
|
|
|
|
[[loggers-single]]
|
|
|
|
== Retrieving a Single Logger
|
|
|
|
== Retrieving a Single Logger
|
|
|
|
|
|
|
|
|
|
|
|
To retrieve a single logger, make a `GET` request to `/application/loggers/{logger.name}`
|
|
|
|
To retrieve a single logger, make a `GET` request to `/application/loggers/{logger.name}`,
|
|
|
|
as shown in the following curl-based example:
|
|
|
|
as shown in the following curl-based example:
|
|
|
|
|
|
|
|
|
|
|
|
include::{snippets}loggers/single/curl-request.adoc[]
|
|
|
|
include::{snippets}loggers/single/curl-request.adoc[]
|
|
|
@ -49,21 +49,20 @@ include::{snippets}loggers/single/http-response.adoc[]
|
|
|
|
[[loggerse-single-response-structure]]
|
|
|
|
[[loggerse-single-response-structure]]
|
|
|
|
=== Response Structure
|
|
|
|
=== Response Structure
|
|
|
|
|
|
|
|
|
|
|
|
The response contains details of the requested logger. The structure of the response is
|
|
|
|
The response contains details of the requested logger. The following table describes the
|
|
|
|
described in the following table:
|
|
|
|
structure of the response:
|
|
|
|
|
|
|
|
|
|
|
|
[cols="3,1,3"]
|
|
|
|
[cols="3,1,3"]
|
|
|
|
include::{snippets}loggers/single/response-fields.adoc[]
|
|
|
|
include::{snippets}loggers/single/response-fields.adoc[]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[loggers-setting-level]]
|
|
|
|
[[loggers-setting-level]]
|
|
|
|
== Setting a Log Level
|
|
|
|
== Setting a Log Level
|
|
|
|
|
|
|
|
|
|
|
|
To set the level of a logger, make a `POST` request to
|
|
|
|
To set the level of a logger, make a `POST` request to
|
|
|
|
`/application/loggers/{logger.name}` with a JSON body that specifies the configured level
|
|
|
|
`/application/loggers/{logger.name}` with a JSON body that specifies the configured level
|
|
|
|
for the logger as shown in the following curl-based example:
|
|
|
|
for the logger, as shown in the following curl-based example:
|
|
|
|
|
|
|
|
|
|
|
|
include::{snippets}loggers/set/curl-request.adoc[]
|
|
|
|
include::{snippets}loggers/set/curl-request.adoc[]
|
|
|
|
|
|
|
|
|
|
|
@ -74,8 +73,8 @@ The preceding example sets the `configuredLevel` of the `com.example` logger to
|
|
|
|
[[loggers-setting-level-request-structure]]
|
|
|
|
[[loggers-setting-level-request-structure]]
|
|
|
|
=== Request Structure
|
|
|
|
=== Request Structure
|
|
|
|
|
|
|
|
|
|
|
|
The request specifies the desired level of the logger. The structure of the request is
|
|
|
|
The request specifies the desired level of the logger. The following table describes the
|
|
|
|
described in the following table:
|
|
|
|
structure of the request:
|
|
|
|
|
|
|
|
|
|
|
|
[cols="3,1,3"]
|
|
|
|
[cols="3,1,3"]
|
|
|
|
include::{snippets}loggers/set/request-fields.adoc[]
|
|
|
|
include::{snippets}loggers/set/request-fields.adoc[]
|
|
|
@ -86,7 +85,7 @@ include::{snippets}loggers/set/request-fields.adoc[]
|
|
|
|
== Clearing a Log Level
|
|
|
|
== Clearing a Log Level
|
|
|
|
|
|
|
|
|
|
|
|
To clear the level of a logger, make a `POST` request to
|
|
|
|
To clear the level of a logger, make a `POST` request to
|
|
|
|
`/application/loggers/{logger.name}` with a JSON body containing an empty object as shown
|
|
|
|
`/application/loggers/{logger.name}` with a JSON body containing an empty object, as shown
|
|
|
|
in the following curl-based example:
|
|
|
|
in the following curl-based example:
|
|
|
|
|
|
|
|
|
|
|
|
include::{snippets}loggers/clear/curl-request.adoc[]
|
|
|
|
include::{snippets}loggers/clear/curl-request.adoc[]
|
|
|
|