REDIRECTING STDOUT AND STDERR OF YOUR PROCESS
By default, the STDOUT stream for your process is redirected to
/dev/null. To get access to this output, you can redirect the stream
either to a file or to a command.
To redirect STDOUT to a file, set the log attribute to a file path.
The file will be written in append mode and created if it does not
exist.
God.watch do |w|
...
w.log = '/var/log/myprocess.log'
...
end
To redirect STDOUT to a command that will be run for you, set the
log_cmd attribute to a command.
God.watch do |w|
...
w.log_cmd = '/usr/bin/logger'
...
end
By default, STDERR is redirected to STDOUT. You can redirect it to a
file or a command just like STDOUT by setting the err_log or
err_log_cmd attributes respectively.
Tom
On Tue, Jun 29, 2010 at 8:27 AM, Tal <[email protected]> wrote:
> I can't get god to hit a ruby script, how can I debug this? -D or log
> doesn't help because it just shows what the monitor is doing.
>
> --
> You received this message because you are subscribed to the Google Groups
> "god.rb" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/god-rb?hl=en.
>
>
--
Tom Preston-Werner
github.com/mojombo
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.