[FEATURE] Improve whitelisting support
aran112000 opened this issue · 1 comments
aran112000 commented
If you've got a whitelist rule that should only apply to a single domain or user agent string perhaps...
aran112000 commented
The default whitelists extracted to settings.json
for IPs and user agents, also the new fluent API allows you to provide a closure that'll be applied for each log line to specify if you wish to whitelist it make it more modular - here's an example of this in action:
(new Log('path_to_file.log'))
->whitelist(function (LogLine $logLine) {
if ($logLine->getUri() === '/whitelisted-uri') {
return 'This is an allowed URI example';
}
return false;
})
->....