logconf.c revision 40f53fa8d9c6a4fc38c0014495e7a42b08f52481
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: logconf.c,v 1.24 2000/08/01 01:11:44 tale Exp $ */
#include <config.h>
} while (0)
/*
* Set up a logging category according to the named.conf data
* in 'ccat' and add it to 'lctx'.
*/
static isc_result_t
unsigned int i;
"unknown logging category '%s' ignored",
/*
* Allow further processing by returning success.
*/
return (ISC_R_SUCCESS);
}
#ifdef notyet
"unknown logging module '%s' ignored",
/*
* Allow further processing by returning success.
*/
return (ISC_R_SUCCESS);
}
#else
#endif
module);
if (result != ISC_R_SUCCESS) {
"logging channel '%s': %s", channelname,
return (result);
}
}
return (ISC_R_SUCCESS);
}
/*
* Set up a logging channel according to the named.conf data
* in 'cchan' and add it to 'lctx'.
*/
static isc_result_t
unsigned int type;
unsigned int flags = 0;
int level;
case dns_c_logchan_file:
{
/*
* XXXDCL should be isc_offset_t, but that
* is incompatible with dns_c_logchan_getsize.
*/
isc_uint32_t size = 0;
"file log channel has "
"no file name");
return (ISC_R_UNEXPECTED);
}
(void)dns_c_logchan_getversions(cchan,
(isc_uint32_t *)
&versions);
}
break;
case dns_c_logchan_syslog:
{
int facility = LOG_DAEMON;
}
break;
case dns_c_logchan_stderr:
{
}
case dns_c_logchan_null:
break;
}
/*
* Munge flags.
*/
{
if (printcat)
if (printtime)
if (printsev)
/* XXX ISC_LOG_PRINTMODULE */
}
return (result);
}
}
if (! default_set)
}
if (! default_set)
return (ISC_R_SUCCESS);
return (result);
}