Module: Capistrano::Configuration::LogFormatters
- Included in:
- Capistrano::Configuration
- Defined in:
- lib/capistrano/configuration/log_formatters.rb
Instance Method Summary collapse
- #default_log_formatters(formatters) ⇒ Object
- #disable_log_formatters ⇒ Object
- #log_formatter(options) ⇒ Object
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_formatters ⇒ Object
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() if .class == Array .each do |option| Capistrano::Logger.add_formatter(option) end else Capistrano::Logger.add_formatter() end end |