README.md in rack-action_logger-0.1.9 vs README.md in rack-action_logger-0.2.0
- old
+ new
@@ -142,11 +142,11 @@
### Add Append Log
Add the following code to any code on any times.
```ruby
-Rack::ActionLogger::Container.set_append_log({ value: 'ok' }, 'activities')
+Rack::ActionLogger::Container.add_append_log({ value: 'ok' }, 'activities')
```
### Add Model Logger
Add the folloing line to ```config/initializers/rack-action_logger.rb``` at the end of line.
@@ -187,10 +187,10 @@
include Sidekiq::Worker
sidekiq_options queue: :test, retry: 5
def perform(title, context)
Rack::ActionLogger::Emitter.new.emit(context) do
- Rack::ActionLogger::Container.set_append_log({ title: title }, 'worker')
+ Rack::ActionLogger::Container.add_append_log({ title: title }, 'worker')
p 'work: title=' + title
end
end
end