X-Git-Url: https://www.flypig.org.uk/git/?p=libcontrac.git;a=blobdiff_plain;f=src%2Flog.c;h=a57d4706f08b55fee11e1b17b60906ce8b9a1e92;hp=599b945fd90f3a1bddd019884db4888006c00393;hb=e48c390a86b448137a87d0d0a5863c202ba66abd;hpb=f8c83387f5abffa94e59332382441a71f5b95545 diff --git a/src/log.c b/src/log.c index 599b945..a57d470 100644 --- a/src/log.c +++ b/src/log.c @@ -29,6 +29,22 @@ // Function prototypes +/** + * Log a string to syslog. + * + * In generl, the LOG macro should be used instead. + * + * Constructs a message using the supplied format and parameters and records it + * in the system log. The format is the same as for printf. + * + * The logging levels are the standard syslog levels: + * + * LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERR, etc. + * + * @param priority The log level priority. + * @param format The format for the message, the same as for printf. + * @param ... parameters to combine with the format to create the message. + */ void log_priority(int priority, const char *format, ...) { va_list args; int length;