Class: BigqueryMigration::Logger
- Inherits:
-
Logger
- Object
- Logger
- BigqueryMigration::Logger
- Defined in:
- lib/bigquery_migration/logger.rb
Instance Method Summary collapse
-
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger
constructor
A new instance of Logger.
- #write(msg) ⇒ Object
Constructor Details
#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ Logger
Returns a new instance of Logger.
35 36 37 38 39 |
# File 'lib/bigquery_migration/logger.rb', line 35 def initialize(logdev, shift_age = 0, shift_size = 1048576) logdev = STDOUT if logdev == 'STDOUT' super(logdev, shift_age, shift_size) @formatter = LogFormatter.new end |
Instance Method Details
#write(msg) ⇒ Object
41 42 43 |
# File 'lib/bigquery_migration/logger.rb', line 41 def write(msg) @logdev.write msg end |