Class: MysqlImport::Logger
- Inherits:
-
Logger
- Object
- Logger
- MysqlImport::Logger
- Defined in:
- lib/mysql_import/logger.rb
Instance Method Summary collapse
-
#initialize(out, debug) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(out, debug) ⇒ Logger
Returns a new instance of Logger.
5 6 7 8 9 10 11 12 13 |
# File 'lib/mysql_import/logger.rb', line 5 def initialize(out, debug) super(out) @level = INFO unless debug case out when STDOUT, STDERR @formatter = ->(_, _, _, ) { "#{String === message ? message : message.inspect}\n" } end end |