December 16, 2014 | code

# Tailing Logs in Capistrano

Quite often you might find yourself wanting to tail the logs for your remote servers. SSHing into the remote machine and manually tailing the logs is a bit cumbersome, so I’m going to show you how to do it with Capistrano (v3).

It’s actually quite simple. Create a file called lib/capistrano/tasks/tail.cap and add the following code.

The task can be invoked by running: