]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use single logging context for everything
authorOndřej Surý <ondrej@isc.org>
Tue, 13 Aug 2024 12:46:42 +0000 (14:46 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 20 Aug 2024 12:50:39 +0000 (12:50 +0000)
commita8a689531f13abcbf100a57f6c65d4c5a0cb07f7
tree17b56a234ade84adf879e304429180d8dc049359
parent957af59cf8fa159467ae9ebde1b760e46f127534
Use single logging context for everything

Instead of juggling different logging context, use one single logging
context that gets initialized in the libisc constructor and destroyed in
the libisc destructor.

The application is still responsible for creating the logging
configuration before using the isc_log API.

This patch is first in the series in a way that it is transparent for
the users of the isc_log API as the isc_log_create() and
isc_log_destroy() are now thin shims that emulate the previous
functionality, but it isc_log_create() will always return internal
isc__lctx pointer and isc_log_destroy() will actually not destroy the
internal isc__lctx context.

Signed-off-by: Ondřej Surý <ondrej@isc.org>
lib/isc/include/isc/log.h
lib/isc/lib.c
lib/isc/log.c