class MyClassThatShouldDoSomeWork
def do_work
logger.debug "Doing Work"
end
def logger
@@logger ||= Logger.new($stdout)
end
end
Inside capistrano, then just specify your class'es logger to be the
Capistrano logger, you'll probably need a setter method, but you see my
point, hopefully. The fact that Cap's logger is non-standard is a bigger
issue, which I do plan to tackle eventually.
- Lee
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" 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/capistrano?hl=en