links: allow to log processing statistics

This commit is contained in:
Kamil Trzcinski
2023-02-23 18:30:20 +01:00
parent 8b3ed0b599
commit 8042743e1a
5 changed files with 74 additions and 13 deletions

View File

@ -124,6 +124,7 @@ option_t all_options[] = {
DEFINE_OPTION_DEFAULT(log, debug, bool, "1", "Enable debug logging."),
DEFINE_OPTION_DEFAULT(log, verbose, bool, "1", "Enable verbose logging."),
DEFINE_OPTION_DEFAULT(log, stats, uint, "1", "Print statistics every duration."),
DEFINE_OPTION_PTR(log, filter, list, "Enable debug logging from the given files. Ex.: `-log-filter=buffer.cc`"),
{}