Module: AWSTracker
- Defined in:
- lib/aws_tracker.rb,
lib/aws_tracker/tracker.rb,
lib/aws_tracker/models/tag.rb,
lib/aws_tracker/models/instance.rb,
lib/aws_tracker/models/_taggable.rb,
lib/aws_tracker/models/ebs_volume.rb,
lib/aws_tracker/models/aws_account.rb,
lib/aws_tracker/models/security_group.rb
Defined Under Namespace
Modules: Taggable Classes: AWSAccount, EBSVolume, Instance, SecurityGroup, Tag, Tracker
Class Method Summary collapse
-
.default_logger ⇒ Object
Returns a slightly-modified version of the default Ruby Logger.
Class Method Details
.default_logger ⇒ Object
Returns a slightly-modified version of the default Ruby Logger
9 10 11 12 13 14 15 16 |
# File 'lib/aws_tracker.rb', line 9 def self.default_logger logger = ::Logger.new(STDOUT) logger.sev_threshold = Logger::INFO logger.formatter = proc {|lvl, time, prog, msg| "#{lvl} #{time.strftime '%Y-%m-%d %H:%M:%S %Z'}: #{msg}\n" } logger end |