Module: Capistrano::Configuration::LogFormatters

Included in:
Capistrano::Configuration
Defined in:
lib/capistrano/configuration/log_formatters.rb

Instance Method Summary collapse

Instance Method Details

#default_log_formatters(formatters) ⇒ Object



66
67
68
# File 'lib/capistrano/configuration/log_formatters.rb', line 66

def default_log_formatters(formatters)
  default_formatters = [*formatters]
end

#disable_log_formattersObject



70
71
72
# File 'lib/capistrano/configuration/log_formatters.rb', line 70

def disable_log_formatters
  @logger.disable_formatters = true
end

#log_formatter(options) ⇒ Object



56
57
58
59
60
61
62
63
64
# File 'lib/capistrano/configuration/log_formatters.rb', line 56

def log_formatter(options)
  if options.class == Array
    options.each do |option|
      Capistrano::Logger.add_formatter(option)
    end
  else
    Capistrano::Logger.add_formatter(options)
  end
end