I have a project in Eclipse which uses OptaPlanner (v8.12.0). I want to be able to write temporary debug statements within the OptaPlanner code itself, so I:
- cloned the repo,
- checked out branch
8.12.x
, - built using
mvn
, - imported as a pre-existing Maven project
optaplanner-core
(again, Eclipse), and - removed the
optaplanner-core
dependency from my Gradle dependencies
Everything compiles and runs just fine, but OptaPlanner no longer responds to my log config changes.
We're using Log4j2 and, when pulling OptaPlanner using the standard build process (Gradle), I can set the log level just fine using the Log4j2 config. But, with the src as a project dependency, it's not working.
I have tried:
- Including a local
logback.xml
- Adding adding as a vm arg:
-Dlogging.level.org.optaplanner=trace
- Adding adding as a vm arg:
-Dlog4j.configurationFile=C:\path\to\log4j2.xml
- Setting an environment variable
LOGGING_CONFIG=C:\path\to\logback.xml
- Setting the level programmatically using
Configurator