Files
bind9/tests/dns
Ondřej Surý b2dda86254 Replace isc_log_create/destroy with isc_logconfig_get()
Add isc_logconfig_get() function to get the current logconfig and use
the getter to replace most of the little dancing around setting up
logging in the tools. Thus:

    isc_log_create(mctx, &lctx, &logconfig);
    isc_log_setcontext(lctx);
    dns_log_setcontext(lctx);
    ...
    ...use lcfg...
    ...
    isc_log_destroy();

is now only:

    logconfig = isc_logconfig_get(lctx);
    ...use lcfg...

For thread-safety, isc_logconfig_get() should be surrounded by RCU read
lock, but since we never use isc_logconfig_get() in threaded context,
the only place where it is actually used (but not really needed) is
named_log_init().
2024-08-20 12:50:39 +00:00
..
2023-08-31 10:29:16 -07:00
2024-03-08 15:36:56 -08:00
2024-05-16 09:49:41 +00:00
2024-02-14 01:36:44 -08:00
2024-08-01 18:30:35 +00:00
2023-03-31 13:33:16 +02:00
2023-06-01 16:51:38 +02:00