Class: ConfigOMat::LogWriter
- Inherits:
-
Object
- Object
- ConfigOMat::LogWriter
- Defined in:
- lib/config_o_mat/shared/types.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(level_name, event_type, merged_data) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/config_o_mat/shared/types.rb', line 27 def call(level_name, event_type, merged_data) merged_data[:level] = level_name merged_data[:event_type] = event_type write { "#{JSON.generate(merged_data)}\n" } end |