log: add ability to match log type with globbing
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 25 Apr 2018 03:17:49 +0000 (20:17 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Apr 2018 10:14:37 +0000 (12:14 +0200)
commit7f0bb634a1406b132ff15c9cd56a0a9f33e5f11d
treecf5b99250a8c67cb76cf2146b7adc204b146976f
parentfa20768905c3a8b36ebb9e828e1643dd86f85f8b
log: add ability to match log type with globbing

Regular expressions are not the best way to match a hierarchical
pattern like dynamic log levels. And the separator for dynamic
log levels is period which is the regex wildcard character.

A better solution is to use filename matching 'globbing' so
that log levels match like file paths. For compatibility,
use colon to separate pattern match style arguments. For
example:
--log-level 'pmd.net.virtio.*:debug'

This also makes the documentation match what really happens
internally.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
doc/guides/contributing/coding_style.rst
doc/guides/nics/qede.rst
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/common/include/rte_log.h
lib/librte_eal/rte_eal_version.map