Class: Capistrano::Smartlogging::Formatter
- Inherits:
-
SSHKit::Formatter::Pretty
- Object
- SSHKit::Formatter::Pretty
- Capistrano::Smartlogging::Formatter
show all
- Defined in:
- lib/capistrano/smartlogging/formatter.rb
Instance Method Summary
collapse
Constructor Details
#initialize(oio) ⇒ Formatter
Returns a new instance of Formatter.
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/capistrano/smartlogging/formatter.rb', line 8
def initialize(oio)
logger = CustomLogger.new(Smartlogging.configuration.log_file)
logger.oio = oio
logger.info("==================================================================")
logger.info("* stage: #{env.fetch(:stage)}")
logger.info("* start date: #{DateTime.now}")
logger.info("==================================================================")
super(logger)
end
|
Instance Method Details
#origin_write ⇒ Object
20
|
# File 'lib/capistrano/smartlogging/formatter.rb', line 20
alias_method :origin_write, :write
|
#write(obj) ⇒ Object
Also known as:
<<
21
22
23
|
# File 'lib/capistrano/smartlogging/formatter.rb', line 21
def write(obj)
origin_write(obj)
end
|