Lines Matching refs:logtype
254 char logtype[80]; in conf_set_logging() local
256 strncpy(logtype, conf_get(&Conf, "log", NULL), sizeof(logtype)-1); in conf_set_logging()
257 strtolower(logtype); in conf_set_logging()
262 if (!strcmp(logtype, "stderr")) { err_file = stderr; closelog(); } in conf_set_logging()
263 else if (!strcmp(logtype, "stdout")) { err_file = stdout; closelog(); } in conf_set_logging()
264 else if (!strcmp(logtype, "log_daemon")) error_init(NULL, LOG_DAEMON); in conf_set_logging()
265 else if (!strcmp(logtype, "log_local0")) error_init(NULL, LOG_LOCAL0); in conf_set_logging()
266 else if (!strcmp(logtype, "log_local1")) error_init(NULL, LOG_LOCAL1); in conf_set_logging()
267 else if (!strcmp(logtype, "log_local2")) error_init(NULL, LOG_LOCAL2); in conf_set_logging()
268 else if (!strcmp(logtype, "log_local3")) error_init(NULL, LOG_LOCAL3); in conf_set_logging()
269 else if (!strcmp(logtype, "log_local4")) error_init(NULL, LOG_LOCAL4); in conf_set_logging()
270 else if (!strcmp(logtype, "log_local5")) error_init(NULL, LOG_LOCAL5); in conf_set_logging()
271 else if (!strcmp(logtype, "log_local6")) error_init(NULL, LOG_LOCAL6); in conf_set_logging()
272 else if (!strcmp(logtype, "log_local7")) error_init(NULL, LOG_LOCAL7); in conf_set_logging()
277 if (!(fp = fopen(logtype, "a"))) in conf_set_logging()
278 Warn("%s: %s: %s", opt_conf, logtype, _("Error opening log file")); in conf_set_logging()