Class: Jredshift::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/jredshift/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Logger

Returns a new instance of Logger.



8
9
10
11
# File 'lib/jredshift/logger.rb', line 8

def initialize(options={})
  @secrets = options.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