Class | Airbrussh::DelegatingFormatter |
In: |
lib/airbrussh/delegating_formatter.rb
|
Parent: | Object |
This class quacks like an SSHKit::Formatter, but when any formatting methods are called, it simply forwards them to one more more concrete formatters. This allows us to split out the responsibilities of ConsoleFormatter and LogFileFormatter into two separate classes, with DelegatingFormatter forwarding the logging messages to both at once.
FORWARD_METHODS | = | %w[ fatal error warn info debug log log_command_start log_command_data log_command_exit ].freeze |
DUP_AND_FORWARD_METHODS | = | %w[<< write].freeze |
formatters | [R] |