lib/ezlog/logging_layout.rb in ezlog-0.2.2 vs lib/ezlog/logging_layout.rb in ezlog-0.3.1
- old
+ new
@@ -1,7 +1,7 @@
require 'time'
-require 'multi_json'
+require 'json'
module Ezlog
class LoggingLayout < ::Logging::Layout
def initialize(context = {})
@initial_context = context
@@ -10,10 +10,10 @@
def format(event)
log_entry = basic_information_for event
add_initial_context_to log_entry
add_logging_context_to log_entry
add_event_information_to log_entry, event
- ::MultiJson.dump(log_entry) + "\n"
+ ::JSON.dump(log_entry) + "\n"
end
private
def basic_information_for(event)