Module: Logging
- Included in:
- AvstCloud::CloudConnection, AvstCloud::CloudServer, AvstCloud::Task
- Defined in:
- lib/avst-cloud/logging.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
Addition.
- .logger ⇒ Object
- .logger=(logger) ⇒ Object
- .mask_message(message) ⇒ Object
- .show_passwords=(show_passwords) ⇒ Object
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Addition
36 37 38 39 40 41 42 |
# File 'lib/avst-cloud/logging.rb', line 36 def self.included(base) class << base def logger Logging.logger end end end |
.logger ⇒ Object
19 20 21 |
# File 'lib/avst-cloud/logging.rb', line 19 def self.logger @logger ||= Logger.new(STDOUT) end |
.logger=(logger) ⇒ Object
23 24 25 |
# File 'lib/avst-cloud/logging.rb', line 23 def self.logger=(logger) @logger = logger end |
.mask_message(message) ⇒ Object
31 32 33 |
# File 'lib/avst-cloud/logging.rb', line 31 def self.() !@show_passwords ? "*****" : end |
.show_passwords=(show_passwords) ⇒ Object
27 28 29 |
# File 'lib/avst-cloud/logging.rb', line 27 def self.show_passwords=(show_passwords) @show_passwords = show_passwords end |
Instance Method Details
#logger ⇒ Object
44 45 46 |
# File 'lib/avst-cloud/logging.rb', line 44 def logger Logging.logger end |