aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-11 13:39:16 +0100
committerJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-14 13:13:12 +0100
commit5a662ba3fb93d6abef23fe665807ad5ec09b1103 (patch)
treefe4072b9353a33bb1f57302e22b77dbd5f905e17 /tshark.c
parent82739fc4f55f51b1d5dd79078bd507837c27dedf (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 'tshark.c')
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index a224c5eaf2..5e0000875b 100644
--- a/tshark.c
+++ b/tshark.c
@@ -784,6 +784,7 @@ main(int argc, char *argv[])
cmdarg_err("Invalid log level \"%s\"", opt_err_val);
return INVALID_OPTION;
}
+ ws_log_set_domain_filter_args(&argc, argv);
ws_debug("tshark started with %d args", argc);