File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
metafix/src/main/resources Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ To execute a Fix (embedded in a Flux) via CLI:
28
28
29
29
` ./gradlew :metafix-runner:run --args="$PWD/path/to.flux" `
30
30
31
+ To execute a Fix (embedded in a Flux) via CLI in java debug mode:
32
+ make sure to pipe to ` log-stream ` after your ` fix ` command in flux resp. make
33
+ use of ` log-object ` at the proper location. Then:
34
+
35
+ ` export JAVA_OPTS="-Dorg.metafacture.metafix.logLevel=DEBUG"; ./gradlew installDist; cd metafix-runner/build/install/metafix-runner; bin/metafix-runner "$PWD/path/to.flux" `
36
+
31
37
(To import the projects in Eclipse, choose ` File > Import > Existing Gradle Project ` and select the ` metafacture-fix ` directory.)
32
38
33
39
## Usage
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ dependencies {
39
39
application {
40
40
mainClass = ' org.metafacture.runner.Flux'
41
41
42
+ applicationDefaultJvmArgs = [
43
+ " -Dorg.metafacture.metafix.logLevel=INFO"
44
+ ]
45
+
42
46
if (project. hasProperty(' profile' )) {
43
47
def file = project. getProperty(' profile' ) ?: project. name
44
48
def depth = project. hasProperty(' profile.depth' ) ? project. getProperty(' profile.depth' ) : 8
45
49
46
- applicationDefaultJvmArgs = [
50
+ applicationDefaultJvmArgs + = [
47
51
" -XX:FlightRecorderOptions=stackdepth=${ depth} " ,
48
52
" -XX:StartFlightRecording=dumponexit=true,filename=${ file} .jfr,settings=profile"
49
53
]
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!DOCTYPE log4j:configuration SYSTEM "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
3
+
4
+ <log4j : configuration >
5
+ <appender name =" stdout" class =" org.apache.log4j.ConsoleAppender" >
6
+ <layout class =" org.apache.log4j.PatternLayout" >
7
+ <param name =" ConversionPattern"
8
+ value =" %-5p [%t] [%c{1}] %m%n" />
9
+ </layout >
10
+ </appender >
11
+
12
+ <root >
13
+ <priority value =" ${org.metafacture.metafix.logLevel}" />
14
+ <appender-ref ref =" stdout" />
15
+ </root >
16
+
17
+ </log4j : configuration >
18
+
You can’t perform that action at this time.
0 commit comments