No subject


Fri Feb 17 00:34:30 UTC 2012


....

#ifdef SYSLOG_42BSD
        openlog(ProgName, n);
#else
        openlog(ProgName, n, LOG_DAEMON);
#endif
....

static int
init_xfer_logging() {
        log_channel chan;

        if (log_new_context(ns_log_max_category, NULL, &log_ctx) < 0) {
                perror("log_new_context");
                return (0);
        }
        log_option(log_ctx, LOG_OPTION_DEBUG, debug);
        log_option(log_ctx, LOG_OPTION_LEVEL, debug);

        log_ctx_valid = 1;

        chan = log_new_syslog_channel(0, 0, LOG_DAEMON);
        if (chan == NULL)
                return (0);
        if (log_add_channel(log_ctx, ns_log_default, chan) < 0) {
                perror("log_add_channel syslog");
                return (0);
        }

......



More information about the bind-workers mailing list