On ubuntu break app logs into their own files

Currently on ubuntu we are sending all app logs to syslog which munges
them all together into /var/log/syslog. This makes debugging a somewhat
painful experience.

Change-Id: I89f9ddc168f08b90cece7cf5af2e032b2c4f5371
This commit is contained in:
Gregory Haynes 2014-09-02 14:03:36 -07:00
parent 00957cad13
commit 9edecd320a
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ install -m 0755 -o root -g root $(dirname $0)/../bin/os-svc-enable /usr/local/b
if [ "$(dib-init-system)" = "upstart" ] ; then
install -m 0755 -o root -g root $(dirname $0)/../bin/os-svc-enable-upstart /usr/local/bin/os-svc-enable-upstart
install -m 0644 -o root -g root $(dirname $0)/../upstart/os-svc-enable.conf /etc/init/os-svc-enable.conf
install -m 0644 -o root -g root $(dirname $0)/../rsyslog.d/25-tripleo-apps.conf /etc/rsyslog.d/25-tripleo-apps.conf
fi
install -m 0755 -o root -g root -d /opt/stack/venvs

View File

@ -0,0 +1,3 @@
# Log each app to its own log file
$template tripleoAppLogFile,"/var/log/%programname%.log"
user.notice ?tripleoAppLogFile