debug: add support for per debug-class logfiles
authorRalph Boehme <slow@samba.org>
Wed, 12 Dec 2018 12:11:26 +0000 (13:11 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 20 Dec 2018 02:19:27 +0000 (03:19 +0100)
commit249bdd9378306c146dca0eec6711e2c6b8eae29a
tree0b725fbf897d3548e1dee8d3efb9b0dcff4104cb
parentabfb3c6bbf5d3d27ca61cd973ffb15c3d8e2be4f
debug: add support for per debug-class logfiles

This adds support for per debug-class logfiles to the function parsing
the "log level" option.

The enhanced syntax is:

  log level = CLASS:LEVEL[@PATH] [CLASS:LEVEL[@PATH] ... ]

Eg

  log level = full_audit:1@/var/log/audit.logfile

While the option is already parsed and stored in in the dbgc_config[]
array, the feature is still effectively disabled, as
reopen_logs_internal() still doesn't open the per debug-class logfiles.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/debug.c