lib/semantic_logger/loggable.rb in semantic_logger-2.15.0 vs lib/semantic_logger/loggable.rb in semantic_logger-2.16.0
- old
+ new
@@ -16,11 +16,11 @@
# class ExternalSupplier
# # Create class and instance logger methods
# include SemanticLogger::Loggable
#
# def call_supplier(amount, name)
-# logger.debug "Calculating with amount", { :amount => amount, :name => name }
+# logger.debug "Calculating with amount", { amount: amount, name: name }
#
# # Measure and log on completion how long the call took to the external supplier
# logger.benchmark_info "Calling external interface" do
# # Code to call the external supplier ...
# end
@@ -92,6 +92,6 @@
def logger=(logger)
@semantic_logger = logger
end
end
-end
\ No newline at end of file
+end