diff --git a/metafix-runner/build.gradle b/metafix-runner/build.gradle index 1179b5c9..ab71abb7 100644 --- a/metafix-runner/build.gradle +++ b/metafix-runner/build.gradle @@ -39,11 +39,15 @@ dependencies { application { mainClass = 'org.metafacture.runner.Flux' + applicationDefaultJvmArgs = [ + "-Dorg.metafacture.metafix.logLevel=INFO" + ] + if (project.hasProperty('profile')) { def file = project.getProperty('profile') ?: project.name def depth = project.hasProperty('profile.depth') ? project.getProperty('profile.depth') : 8 - applicationDefaultJvmArgs = [ + applicationDefaultJvmArgs += [ "-XX:FlightRecorderOptions=stackdepth=${depth}", "-XX:StartFlightRecording=dumponexit=true,filename=${file}.jfr,settings=profile" ] diff --git a/metafix/src/main/resources/log4j.xml b/metafix/src/main/resources/log4j.xml new file mode 100644 index 00000000..81f3a9e5 --- /dev/null +++ b/metafix/src/main/resources/log4j.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + +