lib/sniffer/config.rb in sniffer-0.0.1 vs lib/sniffer/config.rb in sniffer-0.1.0
- old
+ new
@@ -6,15 +6,20 @@
# Sniffer configuration
class Config < Anyway::Config
config_name :sniffer
attr_config logger: Logger.new($stdout),
- request_headers: false,
- requst_body: true,
- response_status: true,
- response_headers: false,
- response_body: true,
- whitelist_url: /.*/,
- blacklist_url: nil,
- store: true
+ severity: Logger::Severity::DEBUG,
+ log: {
+ request_url: true,
+ request_headers: true,
+ request_body: true,
+ request_method: true,
+ response_status: true,
+ response_headers: true,
+ response_body: true,
+ timing: true
+ },
+ store: true,
+ enabled: false
end
end