#include <syslog.h>
#include <sys/time.h>
+/*** Configuration of streams ***/
+
struct stream_config {
cnode n;
char *name;
cf_declare_section("Logging", &log_config, 0);
}
-char *
-log_check_configured(const char *name)
-{
- if (stream_find(name))
- return NULL;
- else
- return cf_printf("Log stream `%s' not found", name);
-}
+/*** Type sets ***/
static uns
log_type_mask(clist *l)
return types;
}
+/*** Generating limiters ***/
+
/*
* When limiting is enabled, we let log_stream->filter point to this function
* and log_stream->user_data point to an array of pointers to token bucket
limits[i] = tbf;
}
+/*** Generating streams ***/
+
+char *
+log_check_configured(const char *name)
+{
+ if (stream_find(name))
+ return NULL;
+ else
+ return cf_printf("Log stream `%s' not found", name);
+}
+
static struct log_stream *
do_new_configured(struct stream_config *c)
{