diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-09 06:22:16 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-09 06:22:16 +0000 |
commit | 10753b34f309db0fbcc484716bafff09faada6fd (patch) | |
tree | fd49e510559d9954e767df664da017fb4923cf08 /sca-cpp/trunk/hosting | |
parent | 5cc3ef4b5260a20ce28c3ada0d7edb364ca1688b (diff) |
Cleanup Scribe log output and add ability to log to a firehose Unix fifo pipe.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1311137 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/hosting')
-rwxr-xr-x | sca-cpp/trunk/hosting/server/ssl-start | 9 | ||||
-rwxr-xr-x | sca-cpp/trunk/hosting/server/start | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sca-cpp/trunk/hosting/server/ssl-start b/sca-cpp/trunk/hosting/server/ssl-start index 49d2b424b9..bbe6a46ea1 100755 --- a/sca-cpp/trunk/hosting/server/ssl-start +++ b/sca-cpp/trunk/hosting/server/ssl-start @@ -22,6 +22,7 @@ here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` jsprefix=`echo "import os; print os.path.realpath('$here/../../modules/js')" | python` +host=`hostname` # Create SSL certificates ../../modules/http/ssl-ca-conf tmp www.example.com @@ -81,20 +82,20 @@ fi if [ -x ../../components/log/scribe-cat ]; then cat >tmp/conf/log.conf <<EOF # Generated by: ssl-start $* -ErrorLog "|$here/../../components/log/scribe-cat server" -CustomLog "|$here/../../components/log/scribe-cat server" combined +ErrorLog "|$here/../../components/log/scribe-cat $host server" +CustomLog "|$here/../../components/log/scribe-cat $host server" combined EOF cat >tmp/conf/log-ssl.conf <<EOF # Generated by: ssl-start $* -CustomLog "|$here/../../components/log/scribe-cat server" sslcombined +CustomLog "|$here/../../components/log/scribe-cat $host server" sslcombined EOF # cat >tmp/conf/mod-security-log.conf <<EOF # Generated by: ssl-start $* -#SecAuditLog "|$here/../../components/log/scribe-cat secaudit" +#SecAuditLog "|$here/../../components/log/scribe-cat $host secaudit" # #EOF diff --git a/sca-cpp/trunk/hosting/server/start b/sca-cpp/trunk/hosting/server/start index 1737efb7b1..a608ccb2e5 100755 --- a/sca-cpp/trunk/hosting/server/start +++ b/sca-cpp/trunk/hosting/server/start @@ -22,6 +22,7 @@ here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` jsprefix=`echo "import os; print os.path.realpath('$here/../../modules/js')" | python` +host=`hostname` # Configure and start logging if [ -x ../../components/log/scribe-cat ]; then @@ -48,8 +49,8 @@ if [ -x ../../components/log/scribe-cat ]; then cat >tmp/conf/log.conf <<EOF # Generated by: start $* LogLevel notice -ErrorLog "|$here/../../components/log/scribe-cat server" -CustomLog "|$here/../../components/log/scribe-cat server" combined +ErrorLog "|$here/../../components/log/scribe-cat $host server" +CustomLog "|$here/../../components/log/scribe-cat $host server" combined EOF |