Logging with configuration file

Registered by Sahdev Zala

Provide logging based on configuration file where user can specify log path, etc. This follows guideline provided at https://docs.python.org/2/howto/logging.html#configuring-logging

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Sahdev Zala
Direction:
Needs approval
Assignee:
srinivas_tadepalli
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Sahdev Zala
Completed by
Sahdev Zala

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/heat-translator-logging,n,z

Addressed by: https://review.openstack.org/212042
    Supporting logging in heat-translator with config file

(spzala)
Hi Srinivas, I hit a problem when running OpenStackClient with logging config file as below,
openstack@ubuntu:~/devstack$ openstack translate template --template-file=/heat-translator/translator/tests/data/tosca_helloworld.yaml --template-type=tosca
Exception raised: No section: 'formatters'
openstack@ubuntu:~/devstack$
 With some research I found, the error could be due to relative path i.e. logging.conf location. I moved it under /translator directory but that didn't work, though still believe the issue probably has something to do with the path (that it works fine with python heat_translator.py but with shell command like osc or $heat-translate it gives error. Since logging blueprint is still in progress and you are working on completing it, I temporary modified translate.py (/osc/v1) and shell.py (/translator) as you will notice. Can you please take care of this with issue with ongoing work? Thanks.

Addressed by: https://review.openstack.org/256411
    Added log messages

(spzala) implemenetd by srinivas_tadepalli ..nice work!!

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.