mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
allow stderr channels to be configured
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: logconf.c,v 1.20 2000/06/22 21:49:23 tale Exp $ */
|
/* $Id: logconf.c,v 1.21 2000/06/22 22:30:12 tale Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -117,6 +117,15 @@ channel_fromconf(dns_c_logchan_t *cchan, isc_logconfig_t *lctx) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case dns_c_logchan_stderr:
|
||||||
|
type = ISC_LOG_TOFILEDESC;
|
||||||
|
{
|
||||||
|
dest.file.stream = stderr;
|
||||||
|
dest.file.name = NULL;
|
||||||
|
dest.file.versions = ISC_LOG_ROLLNEVER;
|
||||||
|
dest.file.maximum_size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
case dns_c_logchan_null:
|
case dns_c_logchan_null:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user