Class: Hanami::Model::Migrator::Logger Private

Inherits:
Logger
  • Object
show all
Defined in:
lib/hanami/model/migrator/logger.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Automatic logger for migrations

Since:

  • 1.0.0

Defined Under Namespace

Classes: Formatter

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ Logger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Logger.

Since:

  • 1.0.0



29
30
31
# File 'lib/hanami/model/migrator/logger.rb', line 29

def initialize(stream)
  super(nil, stream: stream, formatter: Formatter.new)
end