Loggers API

These endpoints allow to retrieve all loggers with their log level and to set the log level.

Loggers are defined in the file: [karaf]/etc/org.ops4j.pax.logging.cfg

Method Endpoint

GET

/cxf/bpc-core/loggers/all

Description

Get all configured loggers with their currently set log level.

Returns

The requested data as JSON

HTTP Status Code

  • 200 : OK

Content-Type

  • application/json

Required Access Rights

The logged in user or API Key must have either the following role or right.

  • Role : LOGGERS_ADMIN

  • Right : LOGGERS_LIST_ALL

GET

/cxf/bpc-core/loggers/levels/valid

Description

Get a list of valid log levels.

Returns

The requested data as JSON

HTTP Status Code

  • 200 : OK

Content-Type

  • application/json

Required Access Rights

The logged in user or API Key must have either the following role or right.

  • Role : LOGGERS_ADMIN

  • Right : LOGGERS_LIST_VALID_LEVELS

/cxf/bpc-core/loggers/level

Description

Set the log level of a specific logger.

Form Parameter

logger

the name of the logger to set the log level for

level

the log level to set. Like INFO, WARN, ERROR, …​

Returns

HTTP Status Code

  • 200 : OK

Content-Type

  • application/json

Required Access Rights

The logged in user or API Key must have either the following role or right.

  • Role : LOGGERS_ADMIN

  • Right : LOGGERS_SET_LEVEL