diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-11 13:39:16 +0100 |
---|---|---|
committer | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-14 13:13:12 +0100 |
commit | 5a662ba3fb93d6abef23fe665807ad5ec09b1103 (patch) | |
tree | fe4072b9353a33bb1f57302e22b77dbd5f905e17 /extcap/randpktdump.c | |
parent | 82739fc4f55f51b1d5dd79078bd507837c27dedf (diff) |
wslog: Add support for domain filtering
A domain filter can be given in the environment variable
'WS_LOG_DOMAINS' or in a command-line options "--log-domains".
The filter is specified as a comma separated case insensitive list,
for example:
./tshark --log-domains=main,capture
Domain data type switches from an enum to a string. There is no
constaint on adding new domains, neither in code or at runtime.
The string format is arbitrary, only positive matches will produce
output.
Diffstat (limited to 'extcap/randpktdump.c')
-rw-r--r-- | extcap/randpktdump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c index a3336f8e7a..495850fac3 100644 --- a/extcap/randpktdump.c +++ b/extcap/randpktdump.c @@ -163,6 +163,7 @@ int main(int argc, char *argv[]) cmdarg_err("Invalid log level \"%s\"", opt_err_val); return EXIT_FAILURE; } + ws_log_set_domain_filter_args(&argc, argv); /* * Get credential information for later use. |