README.md in action_logic-0.2.7 vs README.md in action_logic-0.2.8
- old
+ new
@@ -959,11 +959,11 @@
`ActionLogic.configure` method:
```ruby
ActionLogic.configure do |config|
config.benchmark = true
- config.benchmark_log = File.open("benchmark.log", "w")
+ config.benchmark_log = File.open("benchmark.log", "w")
end
```
### Benchmark Log Formatting
@@ -979,29 +979,29 @@
allowing you to provide your own formatter:
```ruby
ActionLogic.configure do |config|
config.benchmark = true
- config.benchmark_log = File.open("benchmark.log", "w")
- config.benchmark_formatter = YourCustomFormatter
+ config.benchmark_log = File.open("benchmark.log", "w")
+ config.benchmark_formatter = YourCustomFormatter
end
```
Where `YourCustomFormatter` subclasses `ActionLogic::ActionBenchmark::DefaultFormatter`:
```ruby
class CustomFormatter < ActionLogic::ActionBenchmark::DefaultFormatter
def log_coordinator(benchmark_result, execution_context_name)
- benchmark_log.puts("The ActionCoordinator #{execution_context_name} took #{benchmark_result.real} to complete.")
+ benchmark_log.puts("The ActionCoordinator #{execution_context_name} took #{benchmark_result.real} to complete.")
end
def log_use_case(benchmark_result, execution_context_name)
- benchmark_log.puts("The ActionUseCase #{execution_context_name} took #{benchmark_result.real} to complete.")
+ benchmark_log.puts("The ActionUseCase #{execution_context_name} took #{benchmark_result.real} to complete.")
end
def log_task(benchmark_result, execution_context_name)
- benchmark_log.puts("The ActionTask #{execution_context_name} took #{benchmark_result.real} to complete.")
+ benchmark_log.puts("The ActionTask #{execution_context_name} took #{benchmark_result.real} to complete.")
end
end
```