Class: BigqueryMigration::LogFormatter
- Inherits:
-
Object
- Object
- BigqueryMigration::LogFormatter
- Defined in:
- lib/bigquery_migration/logger.rb
Constant Summary collapse
- FORMAT =
"%s [%s] %s\n"
Instance Method Summary collapse
- #call(severity, time, progname, msg) ⇒ Object
-
#initialize(opts = {}) ⇒ LogFormatter
constructor
A new instance of LogFormatter.
Constructor Details
#initialize(opts = {}) ⇒ LogFormatter
Returns a new instance of LogFormatter.
7 8 |
# File 'lib/bigquery_migration/logger.rb', line 7 def initialize(opts={}) end |
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
10 11 12 |
# File 'lib/bigquery_migration/logger.rb', line 10 def call(severity, time, progname, msg) FORMAT % [format_datetime(time), severity, (msg)] end |