lib/semantic_logger/loggable.rb in semantic_logger-3.0.1 vs lib/semantic_logger/loggable.rb in semantic_logger-3.1.0

- old
+ new

@@ -7,20 +7,20 @@ # # Example # # require 'semantic_logger' # SemanticLogger.default_level = :debug -# SemanticLogger.add_appender(STDOUT) +# SemanticLogger.add_appender(io: STDOUT, formatter: :color) # # 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 } # # # Measure and log on completion how long the call took to the external supplier -# logger.benchmark_info "Calling external interface" do +# logger.measure_info "Calling external interface" do # # Code to call the external supplier ... # end # end # end module SemanticLogger