- /*
- Do I need these?
-
- if (logsource==NULL)
- logsource=null;
- if (logtype==NULL)
- logtype=null;
- if (loglevel==NULL)
- loglevel=null;
- if (filename==NULL)
- filename=null;
- */
-
- /*
- * We'll just use filename, if its NULL we know its a syslog thing
- *
- if (logsource==NULL)
- {
- LOG(log_note, logtype_logger, "no logsource given");
- }
- else
- {
- for(sourcenum=0;sourcenum<NUMOF(sources);sourcenum++)
- {
- if (strcasecmp(logsource, sources[sourcenum])==0)
- break;
- }
- if (sourcenum>=NUMOF(sources))
- {
- LOG(log_warning, logtype_logger, "%s is not a valid log source", logsource);
- }
- if ((sourcenum>0) && (filename==NULL))
- {
- LOG(log_warning, logtype_logger,
- "when specifying a filelog, you must specify a valid filename");
- }
- }
- */
-