Class: ROM::Cassandra::Migrations::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/rom/cassandra/migrations/logger.rb

Overview

Default Logger for the migrator

Examples:

logger = Logger.new
logger.info "some text"
# => some text

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



19
20
21
22
# File 'lib/rom/cassandra/migrations/logger.rb', line 19

def initialize
  super $stdout
  self.formatter = proc { |_, _, _, message| "#{message}\n" }
end