2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00
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-10-13 14:44:40 +02:00
2023-02-16 18:35:32 +01:00
2023-09-12 16:14:10 +02:00
2023-02-28 11:44:15 +01:00
2024-08-05 13:31:38 +00:00
2024-03-08 15:36:56 -08:00
2024-08-05 13:31:38 +00:00
2023-08-09 23:48:17 +00:00
2023-02-15 16:44:47 +00:00
2024-02-08 08:01:58 +01:00
2024-08-05 13:31:38 +00:00
2024-07-30 10:58:54 +02:00
2024-08-06 15:17:48 +02:00
2024-05-07 10:01:12 +10:00
2024-08-01 12:30:57 +10:00
2024-08-02 03:44:04 +00:00
2024-04-30 12:50:01 -07:00
2024-08-05 13:31:38 +00:00
2023-03-08 08:36:25 +01:00
2024-04-02 10:35:56 +02:00
2022-11-29 08:54:34 +01:00
2024-05-16 09:49:41 +00:00
2024-03-08 15:36:56 -08:00
2024-08-05 11:21:25 +00:00
2024-08-05 11:21:25 +00:00
2024-08-05 11:21:25 +00:00
2023-03-08 08:36:25 +01:00
2023-02-28 11:44:15 +01:00
2023-08-31 22:08:35 +02:00
2024-04-23 13:11:52 +02:00
2024-04-10 22:51:07 -04:00
2023-11-21 14:48:43 +11:00
2023-03-31 13:33:16 +02:00
2023-06-14 08:14:38 +00:00
2024-01-05 11:16:12 +01:00
2023-02-15 16:44:47 +00:00
2024-08-05 13:31:38 +00:00
2024-08-05 13:31:38 +00:00
2024-01-25 14:48:07 +01:00
2024-08-05 13:31:38 +00:00
2024-04-30 12:50:01 -07:00