-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enables java logging. The log level can be changed by setting a variable. Set and run like this: export JAVA_OPTS="-Dorg.metafacture.metafix.logLevel=DEBUG"; ./gradlew installDist; cd metafix-runner/build/install/metafix-runner; bin/metafix-runner $pathTo.flux Note that you cannot use `./gradlew :metafix-runner:run ...` as setting the log level only works within the distribztion. Co-authored-by: Jens Wille <[email protected]>
- Loading branch information
1 parent
93afd59
commit ccbd741
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE log4j:configuration SYSTEM "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd"> | ||
|
||
<log4j:configuration> | ||
<appender name="stdout" class="org.apache.log4j.ConsoleAppender"> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" | ||
value="%-5p [%t] [%c{1}] %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<root> | ||
<priority value="${org.metafacture.metafix.logLevel}" /> | ||
<appender-ref ref="stdout" /> | ||
</root> | ||
|
||
</log4j:configuration> | ||
|