Skip to content

Logging

Configure logging

SLF4J is used with Log4j 2 as backend. The configuration is done through log4j2.properties which is provided in the class path. Overriding is possible by providing an alternative configuration file.

Logging API

A basic REST resource is available to change the log level temporarily, the settings become effective immediately.

Example:

curl -X PUT -H "Cookie: auth_token=..." -H "Content-Type: application/json" -d '{"level":"info","packages":{"org.entrystore":"debug"}}' http://localhost/store/management/logging

The request body contains a property for the root logger and an object if log levels of packages should be configured indidually:

{
  "level": "info",
  "packages": {
    "org.apache.solr": "warn",
    "org.eclipse.jetty": "warn",
    "org.entrystore": "debug"
  }
}