README.md in eventboss-1.2.0 vs README.md in eventboss-1.2.1
- old
+ new
@@ -116,9 +116,26 @@
end
task 'eventboss:deadletter:reload': :environment
```
+Using eventboss.yml:
+```yaml
+concurrency: 10
+listeners:
+ # It doesn't make much sense to use both include and exclude.
+ include:
+ - MyListener # It will run only listed listeners (MyListener). If MyListener was listed in exclude it would be omitted as well.
+ exclude:
+ - OtherListener # When include option is not set it will run all listeners except listed here (OtherListener). When include is set it will run only included (but not excluded) listeners.
+```
+Yml config is optional and by default is loaded from `'./config/eventboss.yml'`.
+You can also pass config path as an argument:
+```bash
+eventboss -C my/custom/path/to/config.yml
+```
+Yml config content is merged to configuration last, which means it overwrites ENVs and `.configure`.
+
### Logging and error handling
To have more verbose logging, set `log_level` in configuration (default is `info`).
Logger is used as default error handler. There is Airbrake handler available, to use it ensure you have `airbrake` or `airbrake-ruby` gem and add it to error handlers stack: