mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 02:42:33 -05:00
allow stderr channels to be configured
This commit is contained in:
parent
e85ffb301b
commit
aa900978da
1 changed files with 10 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* 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>
|
||||
|
||||
|
|
@ -117,6 +117,15 @@ channel_fromconf(dns_c_logchan_t *cchan, isc_logconfig_t *lctx) {
|
|||
}
|
||||
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:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue