aboutsummaryrefslogtreecommitdiff
path: root/src/logger.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-04-15 15:01:10 +0200
committerDaniel <kingdread@gmx.de>2020-04-15 15:01:10 +0200
commit7881ba85ff40f3d22237ef903c7241b56aa9c185 (patch)
tree975ad07930052191766f21515729c2880bbbc2e2 /src/logger.rs
parent3c429432382dfad6d4ac97349c96e4a4eb292089 (diff)
downloadraidgrep-7881ba85ff40f3d22237ef903c7241b56aa9c185.tar.gz
raidgrep-7881ba85ff40f3d22237ef903c7241b56aa9c185.tar.bz2
raidgrep-7881ba85ff40f3d22237ef903c7241b56aa9c185.zip
new filter pipeline
This is the groundwork for introducing more complex filter queries like `find` has. Filters can be arbitrarily combined with and/or/not and support an "early filter" mode. So far, the filters have been translated pretty mechanically to match the current command line arguments, so now new syntax has been introduced. The NameFilter is not yet in its final version. The goal is to support something like PlayerAll/PlayerExists and have a PlayerFilter that works on single players instead of the complete log, but that might introduce some code duplication as we then need a PlayerFilterAnd, PlayerFilterOr, ... Some digging has to be done into whether we can reduce that duplication without devolving into madness or resorting to macros. Maybe some type-level generic hackery could be done? Maybe an enum instead of dynamic traits should be used, at least for the base functions?
Diffstat (limited to 'src/logger.rs')
0 files changed, 0 insertions, 0 deletions