https://github.com/sonots/capistrano-colorized-stream
enables watch logs on multiple deploying hosts concurrently with colored hostnames
https://github.com/sonots/capistrano-colorized-stream
Last synced: 4 months ago
JSON representation
enables watch logs on multiple deploying hosts concurrently with colored hostnames
- Host: GitHub
- URL: https://github.com/sonots/capistrano-colorized-stream
- Owner: sonots
- Created: 2013-01-11T09:39:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-24T06:29:03.000Z (over 11 years ago)
- Last Synced: 2025-03-14T23:14:22.618Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 139 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capistrano Colorized Stream
testing ruby: 1.9.3; Capistrano: > 2.0
## About capistrano-colorized-stream
capistrano-colorized-stream adds a feature to append colorized hostnames at the head of each line for the [capistrano](https://github.com/capistrano/capistrano)'s `stream` method.
With this gem, it enables you to watch logs on multiple deploying hosts concurrently with colored hostnames like [foreman](https://github.com/ddollar/foreman), for example.
## USAGE
For example, to stream /var/log/syslog files located on multiple hosts, use the extended `stream` method at config/deploy.rb as:
```ruby
require 'capistrano/colorized_stream'server host1, :web
server host2, :webtask :syslog, :roles => :web do
stream "tail -f /var/log/syslog"
end
```Then, execute the defined capistrano task
$ bundle exec cap syslog
Below is an example of results.

## License
MIT License
## Acknowledgement
Special thanks to [@niku4i](http://orihubon.com/blog/2012/02/09/streaming-log-with-capistrano/).