Commit 2ddd849a authored by Charles Girardot's avatar Charles Girardot

set jar to INFO logging level by default and added log4.xml for custom

logging (also reflected in shell je)
parent 1c2a0217
......@@ -5,8 +5,11 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#echo $DIR
#path to jar file to execute, this jar is supposed to be in the same dir as this script
JAR_FILE=$DIR"/je_1.0_bundle.jar"
JAR_FILE=$DIR"/je_embl_1.0_bundle.jar"
OPTS="-Xmx2g"
#uncomment to change logging level using your own log4j.xml found in $DIR file
OPTS=$OPTS" -Dlog4j.configuration=file:$DIR/log4j.xml"
java $OPTS -jar $JAR_FILE "$@"
exit $?
exit $?
\ No newline at end of file
No preview for this file type
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd-MM-yy HH:mm:ss} %-5p [%t] %c{1}.%M(%L) | %m%n" />
</layout>
</appender>
<root>
<level value="INFO" />
<appender-ref ref="CONSOLE" />
</root>
</log4j:configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment