/*
* Copyright (C) 2004-2007, 2011-2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* 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 ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC 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$ */
/*! \file */
#include <config.h>
} while (0)
/*%
* Set up a logging category according to the named.conf data
* in 'ccat' and add it to 'logconfig'.
*/
static isc_result_t
const char *catname;
"unknown logging category '%s' ignored",
catname);
/*
* Allow further processing by returning success.
*/
return (ISC_R_SUCCESS);
}
return (ISC_R_SUCCESS);
{
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 'logconfig'.
*/
static isc_result_t
{
unsigned int type;
unsigned int flags = 0;
int level;
const char *channelname;
int i;
i = 0;
i++;
i++;
i++;
i++;
if (i != 1) {
"channel '%s': exactly one of file, syslog, "
"null, and stderr must be present", channelname);
return (ISC_R_FAILURE);
}
if (cfg_obj_isstring(syslogobj)) {
&facility);
}
}
/*
* Munge flags.
*/
{
}
if (cfg_obj_isstring(severity)) {
} else
/* debug */
}
else
/*
* Test to make sure that file is a plain file.
* Fix defect #22771
*/
/*
* Test that the file can be opened, since
* isc_log_open() can't effectively report
* failures when called in isc_log_doit().
*/
if (result != ISC_R_SUCCESS) {
"isc_stdio_open '%s' failed: "
"isc_stdio_open '%s' failed: %s\n",
} else
(void)isc_stdio_close(fp);
goto done;
}
}
done:
return (result);
}
{
}
{
if (!default_set) {
}
if (!unmatched_set) {
}
}
return (ISC_R_SUCCESS);
return (result);
}