Module: Logging
- Included in:
- AvstCloud::CapistranoDeploymentTask, AvstCloud::CloudConnection, AvstCloud::CloudServer, AvstCloud::DisableRequireTty, AvstCloud::ScpTask, AvstCloud::SshCommandTask, AvstCloud::SshTask, AvstCloud::Task, AvstCloud::WaitUntilReady
- Defined in:
- lib/avst-cloud/logging.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/avst-cloud/logging.rb', line 18 def self.included(base) class << base def logger @logger ||= Logger.new($stdout) end def logger=(logger) @logger = logger end end end |
Instance Method Details
#logger ⇒ Object
30 31 32 |
# File 'lib/avst-cloud/logging.rb', line 30 def logger self.class.logger end |
#logger=(logger) ⇒ Object
33 34 35 |
# File 'lib/avst-cloud/logging.rb', line 33 def logger=(logger) @logger = logger end |