Skip to content

Commit

Permalink
JBTM-2508 configure JDK logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusgrov committed Sep 8, 2015
1 parent 4a03faa commit 67a4bb9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/hudson/narayana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ function tx_bridge_tests {
}

function enable_qa_trace {
cat << 'EOF' > $WORKSPACE/qa/dist/${NARAYANA_VERSION}/etc/log4j.xml
echo "creating file $WORKSPACE/qa/dist/narayana-full-${NARAYANA_CURRENT_VERSION}/etc/log4j.xml"
cat << 'EOF' > $WORKSPACE/qa/dist/narayana-full-${NARAYANA_CURRENT_VERSION}/etc/log4j.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
Expand Down Expand Up @@ -451,6 +452,13 @@ cat << 'EOF' > $WORKSPACE/qa/dist/${NARAYANA_VERSION}/etc/log4j.xml
</category>
</log4j:configuration>
EOF

cat << 'EOF2' > $WORKSPACE/qa/dist/narayana-full-${NARAYANA_CURRENT_VERSION}/etc/logging.properties
handlers= java.util.logging.ConsoleHandler
.level= ALL
java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
EOF2
}

function enable_xts_trace {
Expand Down Expand Up @@ -519,6 +527,10 @@ function qa_tests_once {
orbtype="idlj"
fi

if [ $QA_TRACE ]; then
EXTRA_QA_SYSTEM_PROPERTIES="-Djava.util.logging.config.file=dist/narayana-full-${NARAYANA_CURRENT_VERSION}/etc/logging.properties $EXTRA_QA_SYSTEM_PROPERTIES"
fi

if [[ x"$EXTRA_QA_SYSTEM_PROPERTIES" != "x" ]]; then
add_qa_xargs "$EXTRA_QA_SYSTEM_PROPERTIES"
fi
Expand Down

0 comments on commit 67a4bb9

Please sign in to comment.