You could do this change too..
capistrano/lib/capistrano/logger.rb

class Logger #:nodoc:
+line 3
attr_accessor :filter

+line 14
@filter = options[:filter] || ".*"

+line 35
message.each do |line|
+   if line.match(filter)
       if line_prefix
         device.puts "#{indent} [#{line_prefix}] #{line.strip}\n"
       else
         device.puts "#{indent} #{line.strip}\n"
       end
+   end
end

This would be a global filter on the logger..

It could be feasible to due

 --------------------------------------------------------
require 'capistrano/configuration'
require 'stringio'

output = StringIO.new
config = Capistrano::Configuration.new
config.logger = Capistrano::Logger.new(:output => STDOUT, :filter =>
"^[*]{3}.*" )

config.load "/path/to/Capfile"

config.logger.level = 3

#With *** filter applied...
config.first_task

# Now no filter applied...
config.logger.filter = ".*"
config.another_task

--------------------------------------------------------

All this is really rough and off the cuff. Nothing tested..
--~--~---------~--~----~------------~-------~--~----~
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