charm should support setting log level via config

Bug #1334648 reported by Tom Haddon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swift-proxy (Juju Charms Collection)
Fix Released
Wishlist
Seyeong Kim

Bug Description

To get some logging of requests we had to add the following to proxy-swift.conf manually:

[app:proxy-server]
[...]
set log_name = swift-proxy-server
set log_facility = LOG_LOCAL0
set log_level = DEBUG
set access_log_name = swift-proxy-server
set access_log_facility = LOG_LOCAL0
set access_log_level = DEBUG
set log_headers = True

[filter:proxy-logging]
use = egg:swift#proxy_logging

The charm should support logging via a config option. Also, per http://docs.openstack.org/developer/swift/deployment_guide.html#logging-considerations "Swift is set up to log directly to syslog. Every service can be configured with the log_facility option to set the syslog log facility destination. We recommended using syslog-ng to route the logs to specific log files locally on the server and also to remote log collecting servers". Custom logfiles would be highly preferrable.

Related branches

Tom Haddon (mthaddon)
tags: added: canonical-is
Tom Haddon (mthaddon)
summary: - charm should support logging via config
+ charm should support setting log level via config
tags: added: openstack
Seyeong Kim (seyeongkim)
Changed in swift-proxy (Juju Charms Collection):
status: New → In Progress
assignee: nobody → Seyeong Kim (xtrusia)
Changed in swift-proxy (Juju Charms Collection):
importance: Undecided → Wishlist
milestone: none → 15.04
James Page (james-page)
Changed in swift-proxy (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in swift-proxy (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.