Class: Jredshift::Logger
- Inherits:
-
Object
- Object
- Jredshift::Logger
- Defined in:
- lib/jredshift/logger.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Logger
constructor
A new instance of Logger.
- #log(msg) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Logger
Returns a new instance of Logger.
8 9 10 11 |
# File 'lib/jredshift/logger.rb', line 8 def initialize(={}) @secrets = .fetch(:secrets, []) @secrets << ENV['AWS_SECRET_ACCESS_KEY'] if ENV['AWS_SECRET_ACCESS_KEY'] end |
Instance Method Details
#log(msg) ⇒ Object
13 14 15 |
# File 'lib/jredshift/logger.rb', line 13 def log(msg) puts "#{now_utc} | #{hide_secrets(msg)}" end |