They write to stdout because I didn't want the output indented like
the logger does.

Here, though, is one hackish way to capture the output from the
monitor action. Just put the following in your capfile:

  require 'capistrano/ext/monitor'

  def monitor.out
    @out ||= StringIO.new
  end

  def monitor.print(*args)
    out.print(*args)
  end

  def monitor.puts(*args)
    out.puts(*args)
  end

Then, you can get the output via monitor.out.string.

- Jamis

On 7/27/07, goodieboy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Been using capistrano-ext and it's great! I also put the multistage to
> action and it's working great too.
>
> I was wondering though, why tasks like uptime and load are outputting
> directly to STDOUT and not the Capistrano logger? Is there a way to
> temporarily capture STDOUT or a what about a nifty way to override
> that?
>
> Thanks!
> Matt
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to