cloudtools / stacker

An AWS CloudFormation Stack orchestrator/manager.
http://stacker.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
709 stars 167 forks source link

Allow for custom log formats to be defined in stacker.yaml #705

Closed russellballestrini closed 5 years ago

russellballestrini commented 5 years ago

At Remind we run stacker on a large portion of our stacks in stage and production concurrently using continuous delivery. This means our logs are interlaced between stage and prod and are hard to use.

Also since we use continuous delivery we want to put the deployment_id or git commit hash on every log line so that we can aggregate them all up with our log parsing and viewing tools.

This PR makes it possible to set a custom log format from stacker.yaml.

modified:   .gitignore
modified:   stacker/commands/stacker/__init__.py
modified:   stacker/commands/stacker/base.py
modified:   stacker/config/__init__.py
modified:   stacker/logger/__init__.py
new file:   stacker/tests/fixtures/not-basic.env
new file:   stacker/tests/fixtures/vpc-custom-log-format-info.yaml
modified:   stacker/tests/test_stacker.py