README.md in oh_my_log-1.0.4 vs README.md in oh_my_log-1.0.5
- old
+ new
@@ -62,10 +62,12 @@
>log_path string (path of the file where you want to store the recorded activities)
>selectors Selector[] (instance list of all the selectors)
+>user_fields String[]/Symbol[] (fallback fields used to log an user)
+
###### Instance methods:
>add_selector(selector ->Selector) (use this to add a new selector inside the configuration,
you need to pass an instance of the Selector class)
@@ -107,14 +109,15 @@
```sh
OhMyLog::Log.configure do |config|
config.print_log = true
selector = OhMyLog::Log::Selector.new
- selector.set_controllers("EXCEPT" =>["ApplicationController"])
+ selector.set_controllers("EXCEPT" =>["Application","Hotel"])
selector.set_actions("ONLY" =>["index","create","destroy"])
selector.set_status_codes("ONLY" =>[(0..200)])
selector.set_methods("EXCEPT" =>["GET"])
selector.set_ips("EXCEPT"=>["192.168.0.1"])
+ config.user_fields = ["email", "full_name"]
config.add_selector(selector)
#put your configs here
end
```
\ No newline at end of file