drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject [4/5] drill git commit: DRILL-4986: Allow users to customize the Drill log file name
Date Wed, 02 Nov 2016 18:47:10 GMT
DRILL-4986: Allow users to customize the Drill log file name

Adds a new user-settable environment variable to choose the log file
base name.

closes #641


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/e044f5a9
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/e044f5a9
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/e044f5a9

Branch: refs/heads/master
Commit: e044f5a9d007266b9094fb8899d0a05df0b0dd0d
Parents: e146aeb
Author: Paul Rogers <progers@maprtech.com>
Authored: Tue Nov 1 11:26:03 2016 -0700
Committer: Sudheesh Katkam <skatkam@maprtech.com>
Committed: Wed Nov 2 10:56:02 2016 -0700

----------------------------------------------------------------------
 distribution/src/resources/drill-config.sh | 3 ++-
 distribution/src/resources/drill-env.sh    | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/e044f5a9/distribution/src/resources/drill-config.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drill-config.sh b/distribution/src/resources/drill-config.sh
index b36d856..ed03b28 100644
--- a/distribution/src/resources/drill-config.sh
+++ b/distribution/src/resources/drill-config.sh
@@ -226,7 +226,8 @@ export DRILL_PID_DIR=${DRILL_PID_DIR:-$DRILL_HOME}
 
 # Prepare log file prefix and the main Drillbit log file.
 
-export DRILL_LOG_PREFIX="$DRILL_LOG_DIR/drillbit"
+export DRILL_LOG_NAME=${DRILL_LOG_NAME:-"drillbit"}
+export DRILL_LOG_PREFIX="$DRILL_LOG_DIR/$DRILL_LOG_NAME"
 export DRILLBIT_LOG_PATH="${DRILL_LOG_PREFIX}.log"
 
 # Class path construction.

http://git-wip-us.apache.org/repos/asf/drill/blob/e044f5a9/distribution/src/resources/drill-env.sh
----------------------------------------------------------------------
diff --git a/distribution/src/resources/drill-env.sh b/distribution/src/resources/drill-env.sh
index 9e11458..89a0c1e 100644
--- a/distribution/src/resources/drill-env.sh
+++ b/distribution/src/resources/drill-env.sh
@@ -62,6 +62,10 @@
 
 #export DRILLBIT_CODE_CACHE_SIZE=${DRILLBIT_CODE_CACHE_SIZE:-"1G"}
 
+# Base name for Drill log files. Files are named ${DRILL_LOG_NAME}.out, etc.
+
+# DRILL_LOG_NAME="drillbit"
+
 # Location to place Drill logs. Set to $DRILL_HOME/log by default.
 
 #export DRILL_LOG_DIR=${DRILL_LOG_DIR:-$DRILL_HOME/conf}


Mime
View raw message