summaryrefslogtreecommitdiffstats
path: root/src/logging_syslog.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-08-17 14:14:17 +0200
committerHarald Welte <laforge@gnumonks.org>2011-08-17 17:14:12 +0200
commit18fc465b7ff9818338fa8eb350ee4f20c9acb2c8 (patch)
tree5c4970419e361f9d49e4783b1f367afd22376124 /src/logging_syslog.c
parentba6988bd893eb08c54ffdb144700530e3a683d6e (diff)
doxygen documentation for logging framework
Diffstat (limited to 'src/logging_syslog.c')
-rw-r--r--src/logging_syslog.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/logging_syslog.c b/src/logging_syslog.c
index 4f043b1d..b07b7fe6 100644
--- a/src/logging_syslog.c
+++ b/src/logging_syslog.c
@@ -19,6 +19,12 @@
*
*/
+/*! \addtogroup logging
+ * @{
+ */
+
+/*! \file logging_syslog.c */
+
#include "../config.h"
#ifdef HAVE_SYSLOG_H
@@ -57,6 +63,12 @@ static void _syslog_output(struct log_target *target,
syslog(logp2syslog_level(level), "%s", log);
}
+/*! \brief Create a new logging target for syslog logging
+ * \param[in] ident syslog string identifier
+ * \param[in] option syslog options
+ * \param[in] facility syslog facility
+ * \returns Log target in case of success, NULL in case of error
+ */
struct log_target *log_target_create_syslog(const char *ident, int option,
int facility)
{
@@ -76,3 +88,5 @@ struct log_target *log_target_create_syslog(const char *ident, int option,
}
#endif /* HAVE_SYSLOG_H */
+
+/* }@ */