bind9/doc/dev
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
..
copyrights Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dev.md Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
HOW-ADB-WORKS.txt Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
libuv.md Update documentation for 9.20.0 2024-07-08 14:53:01 +02:00
loopmgr.md remove references to obsolete isc_task/timer functions 2023-02-22 08:13:30 +00:00
rdata.md Shrink decompression contexts 2022-06-01 13:00:40 +01:00
results remove references to obsolete isc_task/timer functions 2023-02-22 08:13:30 +00:00
style.md remove references to obsolete isc_task/timer functions 2023-02-22 08:13:30 +00:00
unexpected De-duplicate __FILE__, __LINE__ 2022-10-17 11:58:26 +01:00