Use zerolog + intercept SIGINT (#2)

* Use zerolog + intercept SIGINT
* Use RFC3339 for time format and add -json flag to disable pretty printing
* Added new flags to README and fixed issue when command exit was not successful
This commit is contained in:
VaiTon
2023-12-18 10:51:54 +01:00
committed by GitHub
parent 766902fd8b
commit 4ffdb87d2f
4 changed files with 126 additions and 34 deletions

View File

@@ -36,6 +36,10 @@ $ ./pcap-broker --help
Usage of ./pcap-broker:
-cmd string
command to execute for pcap data (eg: tcpdump -i eth0 -n --immediate-mode -s 65535 -U -w -)
-debug
enable debug logging
-json
enable json logging
-listen string
listen address for pcap-over-ip (eg: localhost:4242)
-n disable reverse lookup of connecting PCAP-over-IP client IP address