Skip to content

Setup logging

The Onegini Extension Engine logging is available via docker logs <extension engine docker container id>

Set a log level

Log levels can be set using system variables. A naming convention should be used to specify the package the log level should be applied for.

logging.level.<java package name>

Useful packages for logging are:

  • logging.level.org.springframework
  • logging.level.com.innovation_district
  • logging.level.com.onegini

The JAVA_OPTS environment variable can be set via the docker-compose file used to deploy the application.

Example:

extension-engine:
  image: snapshot.onewelcome.com/onegini/extension-engine:snapshot
  environment:
    - JAVA_OPTS="-Xmx512m -Xms512m -Dlogging.level.com.onegini=WARN"
  restart: always
  user: onegini
  ports:
    - 7876:7876